Skip to content

CodeMirrorEditor.replaceSelection method

CodeMirrorEditor › replaceSelection

Unofficial

Replace the current selection with the given text.

Signature:

replaceSelection(text: string): void

Parameters:

Parameter Type Description
text string The replacement text.

Returns: void