Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/15760

Vanessae91a37a98b96
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts
index 608166814b..55e66570a3 100644
--- a/app/src/plugin/API.ts
+++ b/app/src/plugin/API.ts
@@ -245,6 +245,9 @@ const getActiveEditor = (wndActive = true) => {
}
/// #else
editor = window.siyuan.mobile.popEditor || window.siyuan.mobile.editor;
+ if (editor?.protyle.element.classList.contains("fn__none")) {
+ return undefined;
+ }
/// #endif
return editor;
};