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:

Parameter Type Description
fn () => void The function to execute for each selection.

Returns: void