Doc.replaceSelection method
Doc › replaceSelection
Unofficial
Replaces the current selection with the given string.Signature:
replaceSelection(replacement: string, select?: 'around' | 'start'): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| replacement | string | The replacement text. |
| select? | 'around' | 'start' | Optional selection behavior after replacement. |
Returns: void