Skip to content

CodeMirrorEditor.getSelection method

CodeMirrorEditor › getSelection

Unofficial

Get the currently selected text.

Signature:

getSelection(): string

Returns: stringThe selected text.