An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Prevent getActiveEditor from returning hidden editors https://github.com/siyuan-note/siyuan/issues/18731
Danielc1d277f75a08
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.tsindex 23d3bc220e..9f9dc40d28 100644--- a/app/src/plugin/API.ts+++ b/app/src/plugin/API.ts@@ -238,7 +238,8 @@ const getActiveEditor = (wndActive = true) => {const allEditor = getAllEditor();if (range) {editor = allEditor.find(item => {- if (item.protyle.element.contains(range.startContainer)) {+ if (!item.protyle.element.classList.contains("fn__none") &&+ item.protyle.element.contains(range.startContainer)) {return true;}});