fix: break after pasting HTML #318

pr675
Hufe921 2 years ago
parent 7c32f9572f
commit 80f6531b96

@ -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')) {

Loading…
Cancel
Save