An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/9454
Vanessa6b41f7c55458
diff --git a/app/src/editor/util.ts b/app/src/editor/util.tsindex b706c7b006..75225536d3 100644--- a/app/src/editor/util.ts+++ b/app/src/editor/util.ts@@ -539,6 +539,9 @@ export const updatePanelByEditor = (options: {const models = getAllModels();updateOutline(models, options.protyle, options.reload);updateBacklinkGraph(models, options.protyle);+ options.protyle.app.plugins.forEach(item => {+ item.eventBus.emit("switch-protyle", {protyle:options.protyle});+ });};export const isCurrentEditor = (blockId: string) => {diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex c3b7c5247c..a89287ba9f 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -52,6 +52,7 @@ type TEventBus = "ws-main" |"paste" |"input-search" |"loaded-protyle" | "loaded-protyle-dynamic" | "loaded-protyle-static" |+ "switch-protyle" |"destroy-protyle"type TAVCol ="text"