Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/5735 复制

Vanessa43dfab71db82
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts
index 18e9bfe98d..8067c5fcc9 100644
--- a/app/src/protyle/util/paste.ts
+++ b/app/src/protyle/util/paste.ts
@@ -224,6 +224,10 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
e.setAttribute("updated", newId.split("-")[0]);
}
});
+ // 从历史中复制后粘贴
+ tempElement.querySelectorAll('[spellcheck="false"][contenteditable="false"]').forEach((e) => {
+ e.setAttribute("contenteditable", "true");
+ });
const tempInnerHTML = tempElement.innerHTML;
insertHTML(tempInnerHTML, protyle);
filterClipboardHint(protyle, tempInnerHTML);