1 import {Component} from './component';
3 export class WysiwygEditor extends Component {
7 this.editContainer = this.$refs.editContainer;
8 this.input = this.$refs.input;
10 window.importVersioned('wysiwyg').then(wysiwyg => {
11 const editorContent = this.input.value;
12 wysiwyg.createPageEditorInstance(this.editContainer, editorContent);
17 const drawioUrlElem = document.querySelector('[drawio-url]');
19 return drawioUrlElem.getAttribute('drawio-url');
25 * Get the content of this editor.
26 * Used by the parent page editor component.
27 * @return {{html: String}}
32 html: this.editor.getContent(),