mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-28 08:14:59 +03:00
fix: paste-html fallback to text
This commit is contained in:
1 parent
befc1a12fd
commit
3ca488e170
1 file changed
+2
-2
@@ -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>
|
||||
Reference in new issue
Block a user