Skip to content

Commit

Permalink
поправил paste
Browse files Browse the repository at this point in the history
  • Loading branch information
veglem committed May 31, 2024
1 parent 5192350 commit 62102e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/src/components/Editor/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 62102e7

Please sign in to comment.