You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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
Appreciate your response
The text was updated successfully, but these errors were encountered:
@jaywcjlove Thanks will check for this and i also need to maintain the undo redo state for the editor can you show which option to add for that. Appreciate for your response
The history feature can be enabled via a prop, and it is enabled by default. If you need to manage the history yourself, you should use history and disable the default history. @IntelligaiaVivek
@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
so i can use this _editorReferenece state
const editorDidMount = (_editorReferenece: Editor) => {
}
and this _editorReferenece give like this
Appreciate your response
The text was updated successfully, but these errors were encountered: