Skip to content

getSelectedValue

const getSelectedValue: EditorSelector<PortableTextBlock[]>

Defined in: selector.get-selected-value.ts:34

Returns the portion of the document’s value covered by the selection, resolved at any depth.

Containers fully inside the selection are preserved verbatim. Containers on the selection boundary are recursed into so only the selected portion of their content is kept. Text blocks on the boundary are span-sliced.