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:

ParameterTypeDescription
replacementstringThe replacement text.
origin?string | undefinedThe user event that triggered the replacement.

Returns: void

Since: 0.11.11