<!-- 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' | 'to' | 'head' | 'anchor'</code> | _(Optional)_ |
**Returns:**
[`EditorPosition`](EditorPosition)