Skip to content

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 consulted by resolveContainerAt. 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. Use resolveContainerAt(containers, value, path) for position-aware resolution that handles both top-level and positional entries.


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