<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`MarkdownEditView`](MarkdownEditView) › [`getSelection`](MarkdownEditView/getSelection)
## MarkdownEditView.getSelection() method
**Signature:**
```typescript
getSelection(): string;
```
**Returns:**
`string`