diff --git a/src/components/editor/DefaultEditor.vue b/src/components/editor/DefaultEditor.vue index 879e7584..e5a2ba33 100644 --- a/src/components/editor/DefaultEditor.vue +++ b/src/components/editor/DefaultEditor.vue @@ -301,6 +301,12 @@ const editor = useEditor({ return false; }, handlePaste: (view, event: ClipboardEvent) => { + const types = Array.from(event.clipboardData?.types || []); + + if (["text/plain", "text/html"].includes(types[0])) { + return; + } + const images = Array.from(event.clipboardData?.items || []) .map((item) => { return item.getAsFile();