Skip to content

Doc.getCursor method

Doc › getCursor

Unofficial

Gets the cursor position.

Signature:

getCursor(start?: string | undefined): Position

Parameters:

Parameter Type Description
start? string | undefined Optional string indicating which end of the selection to return.

Returns: PositionThe cursor position.