1 import {EditorUiElement} from "../core";
2 import {el} from "../../../utils/dom";
4 export class ExternalContent extends EditorUiElement {
7 * The URL for HTML to be loaded from.
9 protected url: string = '';
11 constructor(url: string) {
16 buildDOM(): HTMLElement {
17 const wrapper = el('div', {
18 class: 'editor-external-content',
21 window.$http.get(this.url).then(resp => {
22 if (typeof resp.data === 'string') {
23 wrapper.innerHTML = resp.data;