Cm5Editor.cursorCoords method
Cm5Editor › cursorCoords
Unofficial
Returns the coordinates of the cursor.Signature:
cursorCoords(where?: boolean | Position, mode?: Cm5CoordsMode): Cm5EditorCursorCoordsParameters:
| Parameter | Type | Description |
|---|---|---|
| where? | boolean | Position | Whether to return the start or end of the selection. |
| mode? | Cm5CoordsMode | The coordinate system to use. |
Returns: Cm5EditorCursorCoords — An object with left, top, and bottom properties.