Appearance
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
| Property | Type | Default | Description |
|---|---|---|---|
| name | text | '' | The field name. Must match your database column name (typically a text or longtext column). |
| label | text | '' | 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 ContentA product description editor:
name: description
label: Product DescriptionTips
- 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 atextorlongtextcolumn. - 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.