mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-27 10:06:16 -04:00
fix: paste-html fallback to text
This commit is contained in:
parent
befc1a12fd
commit
3ca488e170
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue