EditorgetCursor

Editor.getCursor() method

Signature:

abstract getCursor(string?: 'from' | 'to' | 'head' | 'anchor'): EditorPosition;

Parameters

ParameterTypeDescription
string’from’ | ‘to’ | ‘head’ | ‘anchor’(Optional)

Returns:

EditorPosition