diff --git a/public/src/components/Editor/Editor.ts b/public/src/components/Editor/Editor.ts index e47e1f0..21dc55a 100644 --- a/public/src/components/Editor/Editor.ts +++ b/public/src/components/Editor/Editor.ts @@ -46,9 +46,10 @@ export class Editor { } } - event.preventDefault(); + if (isInEditor(document.getSelection().anchorNode)) { + event.preventDefault(); let paste = (event.clipboardData).getData("text"); const selection = window.getSelection(); if (!selection.rangeCount) return;