mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 19:59:08 +08:00
This commit is contained in:
parent
a7d0506cf2
commit
f6cd6d4ac4
@ -50,6 +50,9 @@ export const readClipboard = async () => {
|
||||
} else if (isInHarmony()) {
|
||||
text.textPlain = window.JSHarmony.readClipboard();
|
||||
}
|
||||
if (typeof navigator.clipboard === "undefined" || !navigator.clipboard.read) {
|
||||
return text;
|
||||
}
|
||||
const clipboardContents = await navigator.clipboard.read();
|
||||
for (const item of clipboardContents) {
|
||||
if (item.types.includes("text/html")) {
|
||||
|
Loading…
Reference in New Issue
Block a user