mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
📝
This commit is contained in:
parent
c6e183d1a1
commit
67f7af3dd8
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue