CodeMirrorModule.defineDocExtension method
CodeMirrorModule › defineDocExtension
Unofficial
Like defineExtension, but the method will be added to Doc objects instead.Signature:
defineDocExtension(name: string, value: unknown): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | The extension name. |
| value | unknown | The extension implementation. |
Returns: void