allowMultipleSelections top-level property

Facet<bool, bool> allowMultipleSelections
final

A facet that, when enabled, causes the editor to allow multiple ranges to be selected.

Be careful though, because by default the editor relies on the native DOM selection, which cannot handle multiple selections. An extension like drawSelection can be used to make secondary selections visible to the user.

Implementation

final Facet<bool, bool> allowMultipleSelections = Facet.define(
  FacetConfig(combine: (values) => values.any((v) => v), isStatic: true),
);