Cm5Editor.cursorCoords method
Cm5Editor › cursorCoords
Unofficial
Returns the coordinates of the cursor.Signature:
cursorCoords(where?: boolean | Position | undefined, mode?: Cm5CoordsMode | undefined): Cm5EditorCursorCoordsParameters:
| 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: Cm5EditorCursorCoords — An object with left, top, and bottom properties.