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/5341
Vanessaa74e91a2dd0d
diff --git a/app/src/protyle/util/insertHTML.ts b/app/src/protyle/util/insertHTML.tsindex 976a0f683c..66b6b69cf8 100644--- a/app/src/protyle/util/insertHTML.ts+++ b/app/src/protyle/util/insertHTML.ts@@ -45,14 +45,6 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false) =>return;}let id = blockElement.getAttribute("data-node-id");- if (range.toString() === "") {- // 连续粘贴 PDF 标注不生效 https://github.com/siyuan-note/siyuan/issues/3018- const fileAnnoElement = hasClosestByAttribute(range.startContainer, "data-type", "file-annotation-ref");- if (fileAnnoElement) {- range.setEndAfter(fileAnnoElement);- range.collapse(false);- }- }range.insertNode(document.createElement("wbr"));let oldHTML = blockElement.outerHTML;if (range.toString() !== "") {