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:

Parameter Type Description
mode Cm5Mode<unknown> The outer mode.
state unknown The mode state.

Returns: Cm5InnerModeResultAn object with the inner mode and state.