Skip to content

Type Editor


Type Editor / @type-editor/state / selection/NodeSelection

selection/NodeSelection

Classes

ClassDescription

NodeSelection

A node selection is a selection that points at a single node. All nodes marked selectable can be the target of a node selection. In such a selection, from and to point directly before and after the selected node, anchor equals from, and head equals to.

Node selections are typically invisible and are used to select block-level elements like images, tables, or other atomic nodes that cannot be part of a text selection.