EditorContext
EditorContext =
object
Defined in: packages/editor/src/editor/editor-snapshot.ts:11
Properties
Section titled “Properties”containers
Section titled “containers”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
Section titled “converters”converters:
Converter[]
Defined in: packages/editor/src/editor/editor-snapshot.ts:12
keyGenerator()
Section titled “keyGenerator()”keyGenerator: () =>
string
Defined in: packages/editor/src/editor/editor-snapshot.ts:13
Returns
Section titled “Returns”string
readOnly
Section titled “readOnly”readOnly:
boolean
Defined in: packages/editor/src/editor/editor-snapshot.ts:14
schema
Section titled “schema”schema:
EditorSchema
Defined in: packages/editor/src/editor/editor-snapshot.ts:15
selection
Section titled “selection”selection:
EditorSelection
Defined in: packages/editor/src/editor/editor-snapshot.ts:16
value:
PortableTextBlock[]
Defined in: packages/editor/src/editor/editor-snapshot.ts:17