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/pull/16679

Vanessa885bc90bdca6
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts
index c6ca16f435..140a351ed9 100644
--- a/app/src/plugin/API.ts
+++ b/app/src/plugin/API.ts
@@ -229,7 +229,8 @@ const getActiveEditor = (wndActive = true) => {
}
if (!editor) {
editor = allEditor.find(item => {
- if (!item.protyle.element.classList.contains("fn__none") && 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;
}
});