The "rich-text" field


rich-text

type RichTextField = {
  label: string
  name: string
  type: 'rich-text'
  templates: Template[]
  /** See docs/reference/toolkit/fields for customizing the UI **/
  ui?: object
}

Experimental update

To enable the experimental version of the rich-text editor, set a feature flag:

cms.flags.set('rich-text-alt', true)

For a full list of the changes, checkout the changelog

Slash commands

To add an embedded template quickly enter /, this will present you with the embedable objects, filtering them out as you type.

Give it a try in the playground

Last Edited: July 27, 2021