# Selection operations

> Read the editor's current selection as a portable, addressable target.



1 operations. Names, descriptions, and behavior flags come from the canonical contract.

## Operations

- [`selection.current`](/document-api/reference/selection/current) (read): Read the editor's current selection as a portable SelectionInfo with a text-anchored TextTarget. Primitive for building custom comments UIs, floating toolbars, and other selection-driven components without reaching into ProseMirror internals.

