diff --git a/src/editor/Editor.js b/src/editor/Editor.js index 45c7168c..2a87e055 100644 --- a/src/editor/Editor.js +++ b/src/editor/Editor.js @@ -111,6 +111,16 @@ class Editor extends EditorStartup { this.layersPanel = new LayersPanel(this); this.mainMenu = new MainMenu(this); window.svgEditor = this; + this.loadComponentAndDialog(); + } + /** + * @returns {void} + */ + async loadComponentAndDialog() { + // eslint-disable-next-line no-unsanitized/method + // await import(`./components/index.js`); + // eslint-disable-next-line no-unsanitized/method + await import(`./dialogs/index.js`); } /** * diff --git a/src/editor/dialogs/cmenuDialog.js b/src/editor/dialogs/cmenuDialog.js index 3673d88e..5f1a68c2 100644 --- a/src/editor/dialogs/cmenuDialog.js +++ b/src/editor/dialogs/cmenuDialog.js @@ -1,4 +1,6 @@ +/* globals svgEditor */ const template = document.createElement('template'); +// eslint-disable-next-line no-unsanitized/property template.innerHTML = ` `; /** diff --git a/src/editor/dialogs/editorPreferencesDialog.js b/src/editor/dialogs/editorPreferencesDialog.js index 9c83c7c3..48372353 100644 --- a/src/editor/dialogs/editorPreferencesDialog.js +++ b/src/editor/dialogs/editorPreferencesDialog.js @@ -1,6 +1,6 @@ - - +/* globals svgEditor */ const template = document.createElement('template'); +// eslint-disable-next-line no-unsanitized/property template.innerHTML = `