fix: break after pasting HTML #318

This commit is contained in:
Hufe921
2023-11-09 20:54:23 +08:00
parent 7c32f9572f
commit 80f6531b96
+2
View File
@@ -112,11 +112,13 @@ export function pasteByEvent(host: CanvasEvent, evt: ClipboardEvent) {
item.getAsString(plainText => {
host.input(plainText)
})
break
}
if (item.type === 'text/html' && isHTML) {
item.getAsString(htmlText => {
pastHTML(host, htmlText)
})
break
}
} else if (item.kind === 'file') {
if (item.type.includes('image')) {