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, origin?: string): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| replacement | string | The replacement text. |
| from | Position | The start position. |
| to? | Position | The optional end position. |
| origin? | string | Optional origin string. |
Returns: void