Skip to content

Rich Text

A WYSIWYG (What You See Is What You Get) rich text editor for collecting formatted HTML content. Includes a toolbar for bold, italic, links, lists, headings, and more.

Properties

PropertyTypeDefaultDescription
nametext''The field name. Must match your database column name (typically a text or longtext column).
labeltext''The visible label displayed above the editor.

Events

  • onChange -- Fires when the editor content changes.

Example

A blog post body editor:

name: body
label: Post Content

A product description editor:

name: description
label: Product Description

Tips

  • Place inside a Form Container for the HTML content to be included in form submissions.
  • The submitted value is HTML markup (e.g., <p>Hello <strong>world</strong></p>). Store it in a text or longtext column.
  • Use the HTML Block widget to render the saved HTML content back to the user.
  • Always sanitize rich text content server-side using the Sanitize node to strip potentially harmful HTML tags and attributes.
  • For plain text without formatting, use the Textarea widget instead.