Skip to content

CodeMirrorEditor.forEachSelection method

CodeMirrorEditor › forEachSelection

Unofficial

Execute a function for each selection in a multi-selection.

Signature:

forEachSelection(fn: () => void): void

Parameters:

ParameterTypeDescription
fn() => voidThe function to execute for each selection.

Returns: void