mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
fix: paste-html fallback to text
This commit is contained in:
1 parent
56955898af
commit
f7286a08a6
1 file changed
+1
-3
@@ -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,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user