WYSIWYG editor for formatted content.

Use for article bodies, long descriptions, and page content.

Options

Key Description
format Values: markdown, html.
switcher Show or hide the Editor / Source mode switch. Defaults to true.
media Media source for inserted images (e.g. "content_images"). Set to false to disable media.
path Default image folder (e.g. "blog").
extensions Allowed image extensions (e.g. ["png", "webp"]).
categories Allowed image categories. Values: image.
rename If true, uploaded images get a random filename plus the original extension.

Examples

Markdown with media

- name: body
  label: Body
  type: rich-text
  options:
    media: content_images
    path: public/images/blog
    rename: true
    switcher: true

HTML output

- name: content
  label: Content
  type: rich-text
  options:
    format: html

Hide the mode switch

- name: excerpt
  label: Excerpt
  type: rich-text
  options:
    switcher: false

Disable media

- name: notes
  label: Notes
  type: rich-text
  options:
    media: false