Skip to content

Cm5Editor.cursorCoords method

Cm5Editor › cursorCoords

Unofficial

Returns the coordinates of the cursor.

Signature:

cursorCoords(where?: boolean | Position | undefined, mode?: Cm5CoordsMode | undefined): Cm5EditorCursorCoords

Parameters:

Parameter Type Description
where? boolean | Position | undefined Whether to return the start or end of the selection.
mode? Cm5CoordsMode | undefined The coordinate system to use.

Returns: Cm5EditorCursorCoordsAn object with left, top, and bottom properties.