Skip to content

RichTextText

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

A single text leaf in a RichTextDocument — the editor’s smallest editable unit. text is the leaf’s literal content; any other key is a mark applied to it (e.g. bold: true, italic: true) set by whichever editor plugins are enabled.

[mark: string]: unknown

Marks applied to this leaf (bold, italic, code, …), set by editor plugins.

text: string

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

The leaf’s literal text content.