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/9323
Vanessa856445a6ef7a
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.tsindex 1cb98a8b30..6e4906df84 100644--- a/app/src/protyle/util/paste.ts+++ b/app/src/protyle/util/paste.ts@@ -211,7 +211,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvenprotyle.toolbar.getCurrentType(range).includes("code")) {// 粘贴在代码位置// https://github.com/siyuan-note/siyuan/issues/9142- if (range.toString() !== "" && range.startContainer.nodeType !== 3 && (range.startContainer as Element).classList.contains("protyle-action")) {+ // https://github.com/siyuan-note/siyuan/issues/9323+ if (nodeElement.querySelector(".protyle-action").contains(range.startContainer)) {range.setStart(nodeElement.querySelector(".hljs").firstChild, 0);}insertHTML(textPlain, protyle);