This commit is contained in:
Vanessa 2023-01-09 19:59:36 +08:00
parent c6e183d1a1
commit 67f7af3dd8

View file

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