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/5524
Vanessa6e702253828c
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.tsindex fe432864f7..3c0bff3b50 100644--- a/app/src/protyle/wysiwyg/transaction.ts+++ b/app/src/protyle/wysiwyg/transaction.ts@@ -381,7 +381,12 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: bif (operation.previousID) {let beforeElement: Element;Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.previousID}"]`)).find(item => {- if (!hasClosestByAttribute(item.parentElement, "data-type", "NodeBlockQueryEmbed")) {+ const embedElement = hasClosestByAttribute(item.parentElement, "data-type", "NodeBlockQueryEmbed")+ if (embedElement) {+ // https://github.com/siyuan-note/siyuan/issues/5524+ embedElement.removeAttribute("data-render");+ blockRender(protyle, embedElement);+ } else {beforeElement = item;return true;}