#631 globals svgEditor to get imgpath and set changes

This commit is contained in:
agriyadev5
2021-09-22 12:17:21 +05:30
parent 8df8efedf0
commit b958009e16
23 changed files with 46 additions and 168 deletions

View File

@@ -292,9 +292,6 @@ class MainMenu {
/**
* Associate all button actions as well as non-button keyboard shortcuts.
*/
[ "main_button", "tool_import", "tool_export", "tool_docprops", "tool_editor_prefs", "tool_editor_homepage" ].forEach((attrId) =>
$id(attrId).init(this.editor)
);
$id("tool_import").addEventListener("click", () => {
this.clickImport();
window.dispatchEvent(new CustomEvent("importImages"));