diff --git a/client/components/codeEditor/codeEditor.jsx b/client/components/codeEditor/codeEditor.jsx index ae91361cb..ba60bf125 100644 --- a/client/components/codeEditor/codeEditor.jsx +++ b/client/components/codeEditor/codeEditor.jsx @@ -119,7 +119,6 @@ const createHighlightPlugin = (renderer, tab)=>{ } }); - tokens.forEach((tok)=>{ const line = view.state.doc.line(tok.line + 1); @@ -450,7 +449,6 @@ const CodeEditor = forwardRef( injectText : (text)=>{ const view = viewRef.current; - view.dispatch( view.state.replaceSelection(text) );