<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`Editor`](Editor) › [`getCursor`](Editor/getCursor) ## Editor.getCursor() method **Signature:** ```typescript abstract getCursor(string?: 'from' | 'to' | 'head' | 'anchor'): EditorPosition; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>string</code> | <code>'from' &#124; 'to' &#124; 'head' &#124; 'anchor'</code> | _(Optional)_ | **Returns:** [`EditorPosition`](EditorPosition)