Doc.replaceSelections method
Doc › replaceSelections
Unofficial
Replaces the content of the selections.Signature:
replaceSelections(replacements: string[], collapse?: null | string, origin?: null | string): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| replacements | string[] | The replacement strings. |
| collapse? | null | string | How to collapse selections after replacement. |
| origin? | null | string | Optional origin string. |
Returns: void