Skip to content

Doc.getCursor method

Doc › getCursor

Unofficial

Gets the cursor position.

Signature:

getCursor(start?: string): Position

Parameters:

ParameterTypeDescription
start?stringOptional string indicating which end of the selection to return.

Returns: Position — The cursor position.