react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

How to achieve editorDidMount functionality

Open IntelligaiaVivek opened this issue 7 months ago • 3 comments

@jaywcjlove When the CodeMirror editor is mounted (i.e., initialized). It takes an _editorReference parameter like in codemirror2 same i need this here in @uiw/code-mirror , so it can perform custom initialization tasks when the editor is mounted, and also ensure that the editor is properly configured

<codemirror
editorDidMount={editorDidMount}
/>

so i can use this _editorReferenece state const editorDidMount = (_editorReferenece: Editor) => { } and this _editorReferenece give like this image Appreciate your response

IntelligaiaVivek avatar Jul 22 '24 07:07 IntelligaiaVivek