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/6829
Vanessa81e5bdc32a08
diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.tsindex 72f75b8019..2317bbffcc 100644--- a/app/src/protyle/wysiwyg/remove.ts+++ b/app/src/protyle/wysiwyg/remove.ts@@ -215,9 +215,13 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran}}} else {+ let data = topElement.outerHTML; // 不能 spin ,否则 li 会变为 list+ if (topElement.classList.contains("render-node") || topElement.querySelector("div.render-node")) {+ data = protyle.lute.SpinBlockDOM(topElement.outerHTML); // 防止图表撤销问题+ }inserts.push({action: "insert",- data: protyle.lute.SpinBlockDOM(topElement.outerHTML), // 防止图标撤销问题+ data,id,previousID: topElement.previousElementSibling ? topElement.previousElementSibling.getAttribute("data-node-id") : "",parentID: topElement.parentElement.getAttribute("data-node-id") || protyle.block.parentID