Skip to content

Cm5Editor.cursorCoords method

Cm5Editor › cursorCoords

Unofficial

Returns the coordinates of the cursor.

Signature:

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

Parameters:

ParameterTypeDescription
where?boolean | PositionWhether to return the start or end of the selection.
mode?Cm5CoordsModeThe coordinate system to use.

Returns: Cm5EditorCursorCoords — An object with left, top, and bottom properties.