Doc › getSelection
Unofficial
Gets the currently selected text.
Signature:
getSelection(lineSep?: string | undefined): string
Parameters:
| Parameter | Type | Description |
| lineSep? | string | undefined | Optional line separator. |
Returns: string — The selected text.