Skip to content
This page is available as Markdown at /api/editor/type-aliases/editorcontext.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

EditorContext

EditorContext = object

Defined in: packages/editor/src/editor/editor-snapshot.ts:11

containers: Containers

Defined in: packages/editor/src/editor/editor-snapshot.ts:36

Map of registered editable containers keyed by their bare block-object _type (e.g. 'callout', 'table').

Each entry is a RegisteredContainer carrying type, the array field that holds the container’s editable children, and (when present) the nested positional of registrations the engine consults when it descends into the container. The render callback is engine-internal and not surfaced here.

Only top-level registrations appear as flat entries. A _type registered only inside a parent’s of is reachable through that parent’s of, not as a top-level entry. For position-aware descent, walk the entries with getContainerChildren from @portabletext/editor/traversal.


converters: Converter[]

Defined in: packages/editor/src/editor/editor-snapshot.ts:12


keyGenerator: () => string

Defined in: packages/editor/src/editor/editor-snapshot.ts:13

string


readOnly: boolean

Defined in: packages/editor/src/editor/editor-snapshot.ts:14


schema: EditorSchema

Defined in: packages/editor/src/editor/editor-snapshot.ts:15


selection: EditorSelection

Defined in: packages/editor/src/editor/editor-snapshot.ts:16


value: PortableTextBlock[]

Defined in: packages/editor/src/editor/editor-snapshot.ts:17