CodeMirrorModule.startState method
CodeMirrorModule › startState
Unofficial
Calls startState of the mode if available, otherwise returnstrue. Signature:
startState(mode: Cm5Mode<T>): boolean | TParameters:
| Parameter | Type | Description |
|---|---|---|
| mode | Cm5Mode<T> | The mode. |
Returns: boolean | T — The initial state, or true if no startState method exists.