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/5303
Vanessadc0a6fa57ca8
diff --git a/app/src/editor/index.ts b/app/src/editor/index.tsindex a96d7c9878..8b7896ea7e 100644--- a/app/src/editor/index.ts+++ b/app/src/editor/index.ts@@ -62,6 +62,7 @@ export class Editor extends Model {}},});+ // 需在 after 回调之前,否则不会聚焦 https://github.com/siyuan-note/siyuan/issues/5303this.editor.protyle.model = this;}}diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.tsindex 18ff202784..cf805726b7 100644--- a/app/src/protyle/index.ts+++ b/app/src/protyle/index.ts@@ -185,6 +185,7 @@ class Protyle {});}});+ // 需等渲染完后再回调,用于定位搜索字段 https://github.com/siyuan-note/siyuan/issues/3171if (mergedOptions.after) {mergedOptions.after(this);}