fix: paste-html fallback to text

This commit is contained in:
ShareVB committed 2024-12-15 19:53:29 +01:00
1 parent 56955898af
commit f7286a08a6
1 file changed
+1 -3
+1 -3
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;
}
@@ -161,8 +161,6 @@ onMounted(() => {
defineExpose({
inputWrapperRef,
textareaRef,
inputRef,
focus,
blur,
});