Skip to main content
The Rich Text field gives editors a formatting interface while storing content as structured JSON. You can render that data as JSX, HTML, Markdown, or plain text. FrogBot builds the editor on Lexical, an open-source editor whose concepts and node model can be reused outside FrogBot. Install the editor package and configure an editor at the root of your FrogBot config:
Every Rich Text field needs an editor. A root editor applies to top-level fields unless a field supplies its own editor. Nested Rich Text fields need an explicit field editor.

Config options

Field editor

Override the root editor for one field when it needs different features or admin settings:
See the Rich Text editor overview for feature configuration and rendering.

Admin options

The field’s admin option inherits the standard field admin settings. Editor-specific options belong inside lexicalEditor:

Data shape

Rich Text values are serialized editor states. Import the data type from the package’s Lexical subpath:
FrogBot type generation includes the serialized root.children shape for configured Rich Text fields.