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/11391
Vanessa0ad0d416c4ab
diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.tsindex 639bd7954c..8329ef64f2 100644--- a/app/src/protyle/wysiwyg/commonHotkey.ts+++ b/app/src/protyle/wysiwyg/commonHotkey.ts@@ -200,7 +200,15 @@ export const duplicateBlock = (nodeElements: Element[], protyle: IProtyle) => {childItem.setAttribute("data-node-id", Lute.NewNodeID());});item.classList.remove("protyle-wysiwyg--select");- nodeElements[0].after(tempElement);+ if (tempElement.dataset.type ==="NodeHTMLBlock") {+ const phElement = tempElement.querySelector("protyle-html");+ const content = phElement.getAttribute("data-content");+ phElement.setAttribute("data-content", "");+ nodeElements[0].after(tempElement);+ phElement.setAttribute("data-content", Lute.UnEscapeHTMLStr(content));+ } else {+ nodeElements[0].after(tempElement);+ }doOperations.push({action: "insert",data: tempElement.outerHTML,