Skip to content

Type Editor


Type Editor / @type-editor/selection-util / selection-between

selection-between

Functions

FunctionDescription

selectionBetween

Creates a selection between two resolved positions.

This function first checks if any plugins provide a custom 'createSelectionBetween' method. If not, it falls back to creating a standard text selection. This allows plugins to implement custom selection types (e.g., table cell selections).