}
this.loadHistory();
- this.popup.components.popup.show(() => {
+ this.getPopup().show(() => {
Code.updateLayout(this.editor);
this.editor.focus();
}, () => {
}
hide() {
- this.popup.components.popup.hide();
+ this.getPopup().hide();
this.addHistory();
}
+ /**
+ * @returns {Popup}
+ */
+ getPopup() {
+ return window.$components.firstOnElement(this.popup, 'popup');
+ }
+
async updateEditorMode(language) {
const Code = await window.importVersioned('code');
Code.setMode(this.editor, language, this.editor.getValue());