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/9063
Vanessaf28ce5a3b7fc
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.tsindex 1df7e42177..eb62ff5ec6 100644--- a/app/src/protyle/wysiwyg/transaction.ts+++ b/app/src/protyle/wysiwyg/transaction.ts@@ -333,7 +333,7 @@ const deleteBlock = (updateElements: Element[], id: string, protyle: IProtyle) =});}-const updateBlock = (updateElements: Element[], protyle: IProtyle, operation: IOperation) => {+const updateBlock = (updateElements: Element[], protyle: IProtyle, operation: IOperation, focus: boolean) => {updateElements.forEach(item => {item.outerHTML = operation.data;});@@ -444,7 +444,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: b}if (operation.action === "update") {if (updateElements.length > 0) {- updateBlock(updateElements, protyle, operation);+ updateBlock(updateElements, protyle, operation, focus);} else {zoomOut({protyle,@@ -457,7 +457,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: bupdateElements.push(item);}});- updateBlock(updateElements, protyle, operation);+ updateBlock(updateElements, protyle, operation, focus);}});}