Skip to content

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

:memo:

Vanessa67f7af3dd848
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts
index a7126d2c3a..4a5416a41f 100644
--- a/app/src/protyle/util/paste.ts
+++ b/app/src/protyle/util/paste.ts
@@ -193,7 +193,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
isHTML = true;
} else if (textHTML.replace("<!--StartFragment--><!--EndFragment-->", "").trim() !== "") {
textHTML = textHTML.replace("<!--StartFragment-->", "").replace("<!--EndFragment-->", "").trim();
- // 浏览器上复制当个图片应拷贝到本地,excel 中的复制需粘贴
+ // 浏览器上复制单个图片应拷贝到本地,excel 中的复制需粘贴
+ console.log(textHTML);
if (files && files.length === 1 && textHTML.indexOf("<img") > -1) {
isHTML = false;
} else {