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/5594
Vanessabedb811d6e55
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.tsindex d666d33d94..727db9d6d1 100644--- a/app/src/protyle/util/paste.ts+++ b/app/src/protyle/util/paste.ts@@ -119,8 +119,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven}return;}- protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select").forEach(item => {- item.classList.remove("protyle-wysiwyg--select");+ protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select, .protyle-wysiwyg--hl").forEach(item => {+ item.classList.remove("protyle-wysiwyg--select", "protyle-wysiwyg--hl");});const code = processPasteCode(textHTML, textPlain);const range = getEditorRange(protyle.wysiwyg.element);@@ -189,7 +189,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEventempElement.innerHTML = textHTML.substr(1);let isBlock = false;tempElement.querySelectorAll("[data-node-id]").forEach((e) => {- e.classList.remove("protyle-wysiwyg--select");+ e.classList.remove("protyle-wysiwyg--select", "protyle-wysiwyg--hl");isBlock = true;});if (nodeElement.classList.contains("table")) {@@ -206,7 +206,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEventempElement.querySelectorAll("[data-node-id]").forEach((e) => {const newId = Lute.NewNodeID();e.setAttribute("data-node-id", newId);- e.classList.remove("protyle-wysiwyg--select");+ e.classList.remove("protyle-wysiwyg--select", "protyle-wysiwyg--hl");if (e.getAttribute("updated")) {e.setAttribute("updated", newId.split("-")[0]);}