Doc.replaceRange method
Doc › replaceRange
Unofficial
Replaces the range between the given points with the given string.Signature:
replaceRange(replacement: string, from: Position, to?: Position | undefined, origin?: string | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| replacement | string | The replacement text. |
| from | Position | The start position. |
| to? | Position | undefined | The optional end position. |
| origin? | string | undefined | Optional origin string. |
Returns: void