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: https://github.com/siyuan-note/siyuan/issues/14510
Vanessad275f20a4dae
diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.tsindex 983a2bec3d..e538140d29 100644--- a/app/src/protyle/wysiwyg/commonHotkey.ts+++ b/app/src/protyle/wysiwyg/commonHotkey.ts@@ -266,17 +266,17 @@ export const duplicateBlock = (nodeElements: Element[], protyle: IProtyle) => {}const newId = Lute.NewNodeID();tempElement.setAttribute("data-node-id", newId);- tempElement.setAttribute("data-node-id", newId);tempElement.removeAttribute(Constants.CUSTOM_RIFF_DECKS);tempElement.classList.remove("protyle-wysiwyg--select", "protyle-wysiwyg--hl");tempElement.setAttribute("updated", newId.split("-")[0]);tempElement.removeAttribute("refcount");tempElement.lastElementChild.querySelector(".protyle-attr--refcount")?.remove();tempElement.querySelectorAll("[data-node-id]").forEach(childItem => {- childItem.setAttribute("data-node-id", newId);+ const subNewId = Lute.NewNodeID();+ childItem.setAttribute("data-node-id", subNewId);childItem.removeAttribute(Constants.CUSTOM_RIFF_DECKS);childItem.classList.remove("protyle-wysiwyg--select", "protyle-wysiwyg--hl");- childItem.setAttribute("updated", newId.split("-")[0]);+ childItem.setAttribute("updated", subNewId.split("-")[0]);childItem.removeAttribute("refcount");childItem.lastElementChild.querySelector(".protyle-attr--refcount")?.remove();});