Skip to content

CodeMirrorModule.startState method

CodeMirrorModule › startState

Unofficial

Calls startState of the mode if available, otherwise returns true.

Signature:

startState(mode: Cm5Mode<T>): boolean | T

Parameters:

ParameterTypeDescription
modeCm5Mode<T>The mode.

Returns: boolean | TThe initial state, or true if no startState method exists.