Cm5Editor.replaceSelections method
Cm5Editor › replaceSelections
Unofficial
Replaces the content of the selections with the given strings.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 the selection after replacement. |
| origin? | null | string | Optional origin string. |
Returns: void