<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Editor`](Editor) › [`posToOffset`](Editor/posToOffset)
## Editor.posToOffset() method
0.11.11
**Signature:**
```typescript
abstract posToOffset(pos: EditorPosition): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>pos</code> | [`EditorPosition`](EditorPosition) | |
**Returns:**
`number`