1 import {Component} from './component';
3 export class WysiwygEditor extends Component {
7 this.editArea = this.$refs.editArea;
9 window.importVersioned('wysiwyg').then(wysiwyg => {
10 wysiwyg.createPageEditorInstance(this.editArea);
15 const drawioUrlElem = document.querySelector('[drawio-url]');
17 return drawioUrlElem.getAttribute('drawio-url');
23 * Get the content of this editor.
24 * Used by the parent page editor component.
25 * @return {{html: String}}
29 html: this.editor.getContent(),