From 25b6b9f679faee7607e693e7387a6f0d204b0e59 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Wed, 24 Dec 2025 11:08:56 +0800 Subject: [PATCH] :bug: Fix getActiveEditor function returning inactive editor (#16679) --- app/src/plugin/API.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } });