mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-12 15:11:10 +08:00
This commit is contained in:
parent
2a3372ff5c
commit
f534be1794
@ -107,6 +107,10 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|||||||
if (doc.body && doc.body.innerHTML) {
|
if (doc.body && doc.body.innerHTML) {
|
||||||
textHTML = doc.body.innerHTML;
|
textHTML = doc.body.innerHTML;
|
||||||
}
|
}
|
||||||
|
// windows 剪切板
|
||||||
|
if (textHTML.startsWith("\n<!--StartFragment-->") && textHTML.endsWith("<!--EndFragment-->\n\n")) {
|
||||||
|
textHTML = doc.body.innerHTML.trim().replace("<!--StartFragment-->", "").replace("<!--EndFragment-->", "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
textHTML = Lute.Sanitize(textHTML);
|
textHTML = Lute.Sanitize(textHTML);
|
||||||
|
Loading…
Reference in New Issue
Block a user