ReferenceSelection
Selection operations
Read the editor's current selection as a portable, addressable target.
3 operations. Names, descriptions, and behavior flags come from the canonical contract.
Operations
selection.currentRead the editor's current selection as a portable SelectionInfo with text targets or V2 browser table/cell metadata. Primitive for building custom comments UIs, floating toolbars, and other selection-driven components without reaching into ProseMirror internals.readselection.extractOoxmlCapture a nonempty current or addressed selection as portable OOXML with native dependencies. Optional retain:true keeps an exact same-session restoration handle for one complete standalone body paragraph; release it when unused. Unsupported retained contexts and collaboration reject.readselection.releaseSnapshotRelease a retained exact-selection snapshot without changing document content or Undo history. Available on v2-backed sessions only; v1-backed sessions currently return `CAPABILITY_UNAVAILABLE`.read