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:

ParameterTypeDescription
where?boolean | Position | undefinedWhether to return the start or end of the selection.
mode?Cm5CoordsMode | undefinedThe coordinate system to use.

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