fix: paste-html fallback to text

This commit is contained in:
ShareVB 2024-12-15 19:37:56 +01:00
parent befc1a12fd
commit 3ca488e170

View file

@ -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>