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: https://github.com/siyuan-note/siyuan/issues/14326
Vanessa1278e1142a14
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.tsindex b7265a889b..19705ec0b7 100644--- a/app/src/protyle/wysiwyg/transaction.ts+++ b/app/src/protyle/wysiwyg/transaction.ts@@ -481,6 +481,12 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:updateElements.push(newUpdateElement);operation.data = newTempElement.outerHTML;operation.id = newUpdateId;+ // https://github.com/siyuan-note/siyuan/issues/14326#issuecomment-2746140335+ protyle.wysiwyg.element.childNodes.forEach((item, index) => {+ if (index !== 0) {+ item.remove();+ }+ })}}if (updateElements.length > 0) {