Skip to content

RichTextDocument

RichTextDocument = RichTextElement[]

Defined in: packages/core/src/fields/richtext/types.ts:43

A complete rich text value — an ordered list of top-level RichTextElement nodes. Locale-agnostic: a richtext field stores exactly one RichTextDocument, never a per-locale map (Design Decision 1). This is the interfaceType generated for every richtext() field and the value type both VexEditorComponentProps.value and VexRenderComponentProps.content carry.