Skip to content

Editor.replaceSelection method

Editor › replaceSelection

Official

Replace the current selection with the given text.

Signature:

replaceSelection(replacement: string, origin?: string | undefined): void

Parameters:

Parameter Type Description
replacement string The replacement text.
origin? string | undefined The user event that triggered the replacement.

Returns: void

Since: 0.11.11