getModeAt method

dynamic getModeAt(
  1. Position pos
)

Gets the inner mode at a given position. This will return the same as getMode for simple modes, but will return an inner mode for nesting modes (such as htmlmixed).

The returned mode is a JsObject.

Implementation

dynamic getModeAt(Position pos) => editor.callArg('getModeAt', pos.toProxy());