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: fix https://github.com/siyuan-note/siyuan/issues/8817
Vanessa39b20dc224cd
diff --git a/app/src/editor/util.ts b/app/src/editor/util.tsindex 3e7001ccd0..8657132591 100644--- a/app/src/editor/util.ts+++ b/app/src/editor/util.ts@@ -346,7 +346,13 @@ const switchEditor = (editor: Editor, options: IOpenFileOptions, allModels: IModzoomOut({protyle: editor.editor.protyle, id: options.id});return true;}- let nodeElement = editor.editor.protyle.wysiwyg.element.querySelector(`[data-node-id="${options.id}"]`);+ let nodeElement: Element;+ Array.from(editor.editor.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${options.id}"]`)).find(item => {+ if (!hasClosestByAttribute(item.parentElement, "data-type", "NodeBlockQueryEmbed")) {+ nodeElement = item;+ return true;+ }+ });if ((!nodeElement || nodeElement?.clientHeight === 0) && options.id !== options.rootID) {fetchPost("/api/filetree/getDoc", {id: options.id,