diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts index a2af87e01..c6ca16f43 100644 --- a/app/src/plugin/API.ts +++ b/app/src/plugin/API.ts @@ -229,7 +229,7 @@ const getActiveEditor = (wndActive = true) => { } if (!editor) { editor = allEditor.find(item => { - if (hasClosestByClassName(item.protyle.element, "layout__wnd--active", true)) { + if (!item.protyle.element.classList.contains("fn__none") && hasClosestByClassName(item.protyle.element, "layout__wnd--active", true)) { return true; } });