Skip to content
This page is available as Markdown at /api/selectors/variables/getpreviousspan.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

getPreviousSpan

const getPreviousSpan: EditorSelector<{ node: PortableTextSpan; path: Path; } | undefined>

Defined in: selector.get-previous-span.ts:13

Returns the span before the selection start within the same text block, resolved at any depth.