Skip to content

Doc.replaceSelections method

Doc › replaceSelections

Unofficial

Replaces the content of the selections.

Signature:

replaceSelections(replacements: string[], collapse?: string | null | undefined, origin?: string | null | undefined): void

Parameters:

Parameter Type Description
replacements string[] The replacement strings.
collapse? string | null | undefined How to collapse selections after replacement.
origin? string | null | undefined Optional origin string.

Returns: void