Skip to content

CodeMirrorModule.innerMode method

CodeMirrorModule › innerMode

Unofficial

Returns the inner mode and its state for the current position.

Signature:

innerMode(mode: Cm5Mode<unknown>, state: unknown): Cm5InnerModeResult

Parameters:

ParameterTypeDescription
modeCm5Mode<unknown>The outer mode.
stateunknownThe mode state.

Returns: Cm5InnerModeResultAn object with the inner mode and state.