mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 14:01:42 +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) {
|
if (!target) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
evt.preventDefault();
|
|
||||||
const textHtmlData = evt.clipboardData?.getData('text/html');
|
const textHtmlData = evt.clipboardData?.getData('text/html');
|
||||||
if (textHtmlData && textHtmlData !== '') {
|
if (textHtmlData && textHtmlData !== '') {
|
||||||
|
evt.preventDefault();
|
||||||
value.value = textHtmlData;
|
value.value = textHtmlData;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -161,8 +161,6 @@ onMounted(() => {
|
|||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
inputWrapperRef,
|
inputWrapperRef,
|
||||||
textareaRef,
|
|
||||||
inputRef,
|
|
||||||
focus,
|
focus,
|
||||||
blur,
|
blur,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user