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/12448
Vanessade3373b8b90e
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.tsindex a31ea14738..260c06e25f 100644--- a/app/src/protyle/wysiwyg/transaction.ts+++ b/app/src/protyle/wysiwyg/transaction.ts@@ -646,6 +646,18 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:cursorElements.push(item.nextElementSibling);}});+ } else if (operation.nextID) {+ Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.nextID}"]`)).forEach(item => {+ const embedElement = isInEmbedBlock(item);+ if (embedElement) {+ // https://github.com/siyuan-note/siyuan/issues/5524+ embedElement.removeAttribute("data-render");+ blockRender(protyle, embedElement);+ } else {+ item.insertAdjacentHTML("beforebegin", operation.data);+ cursorElements.push(item.previousElementSibling);+ }+ });} else {if (!protyle.options.backlinkData && operation.parentID === protyle.block.parentID) {protyle.wysiwyg.element.insertAdjacentHTML("afterbegin", operation.data);