Skip to content

Commit

Permalink
fix: prevent paste in code block
Browse files Browse the repository at this point in the history
Fixes #130
  • Loading branch information
petyosi committed Nov 2, 2023
1 parent b303a99 commit 18212f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/codemirror/CodeMirrorEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const CodeMirrorEditor = ({ language, nodeKey, code, focusEmitter }: Code
codeMirrorRef.current?.getCodemirror()?.dom.addEventListener('paste', (e) => {
e.stopPropagation()
})
}, [codeMirrorRef])
}, [codeMirrorRef, language])

return (
<div
Expand Down

0 comments on commit 18212f0

Please sign in to comment.