diff --git a/src/plugins/codemirror/CodeMirrorEditor.tsx b/src/plugins/codemirror/CodeMirrorEditor.tsx index 7f76c287..43fe1aa7 100644 --- a/src/plugins/codemirror/CodeMirrorEditor.tsx +++ b/src/plugins/codemirror/CodeMirrorEditor.tsx @@ -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 (