I
Schema
The compiled schema: the set of known node/mark specs plus attribute coercion helpers. Projected from the registry (the registry is the SSOT).
Signature
ts
interface SchemaProperties
| Property | Type | Description |
|---|---|---|
nodesreadonly | ReadonlyMap<string, NodeSpec> | — |
marksreadonly | ReadonlyMap<string, MarkSpec> | — |
nodeSpec | (type: string) => NodeSpec | undefined | — |
markSpec | (type: string) => MarkSpec | undefined | — |
defaultAttrs | (type: string) => Attrs | Default attrs for a block type (all defaults applied). |
coerceAttrs | (type: string, attrs?: Attrs) => Attrs | Fill defaults and drop unknown keys for a block type. |
defaultMarkAttrs | (type: string) => Attrs | Default attrs for a mark type. |
coerceMarkAttrs | (type: string, attrs?: Attrs) => Attrs | Fill defaults and drop unknown keys for a mark type. |