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/7021
Vanessa49385e48de5a
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.tsindex 4a5416a41f..7687b277a9 100644--- a/app/src/protyle/util/paste.ts+++ b/app/src/protyle/util/paste.ts@@ -193,11 +193,13 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvenisHTML = true;} else if (textHTML.replace("<!--StartFragment--><!--EndFragment-->", "").trim() !== "") {textHTML = textHTML.replace("<!--StartFragment-->", "").replace("<!--EndFragment-->", "").trim();- // 浏览器上复制单个图片应拷贝到本地,excel 中的复制需粘贴- console.log(textHTML);- if (files && files.length === 1 && textHTML.indexOf("<img") > -1) {+ if (files && files.length === 1 && (+ textHTML.startsWith("<img") || // 浏览器上复制单个图片+ (textHTML.startsWith("<table") && textHTML.split("<table").length === 2 && textHTML.indexOf("<img") > -1) // excel 中的复制带有图片的表格+ )) {isHTML = false;} else {+ // 需注意 Edge 中的画选不应识别为图片 https://github.com/siyuan-note/siyuan/issues/7021isHTML = true;}}