CodeMirrorModule.defineInitHook method
CodeMirrorModule › defineInitHook
Unofficial
Registers a function to be called when an editor is initialized.Signature:
defineInitHook(f: (cm: Cm5Editor) => void): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| f | (cm: Cm5Editor) => void | The initialization hook function. |
Returns: void