Skip to content

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): void

Parameters:

ParameterTypeDescription
replacementsstring[]The replacement strings.
collapse?null | stringHow to collapse the selection after replacement.
origin?null | stringOptional origin string.

Returns: void