fix: paste-html fallback to text
This commit is contained in:
parent
befc1a12fd
commit
3ca488e170
@ -96,9 +96,9 @@ function onPasteInputHtml(evt: ClipboardEvent) {
|
||||
if (!target) {
|
||||
return false;
|
||||
}
|
||||
evt.preventDefault();
|
||||
const textHtmlData = evt.clipboardData?.getData('text/html');
|
||||
if (textHtmlData && textHtmlData !== '') {
|
||||
evt.preventDefault();
|
||||
value.value = textHtmlData;
|
||||
return true;
|
||||
}
|
||||
@ -364,4 +364,4 @@ defineExpose({
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user