Rich Text Control
WordPress rich text editor (TinyMCE) for formatted content with HTML support.
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
label | string | - | Field label |
control | string | rich-text | Control type |
placeholder | string | - | Placeholder text |
default | string | - | Default value |
Example
Section titled “Example”{ "attributes": { "articleBody": { "type": "string", "default": "", "wbs": { "label": "Article Body", "control": "rich-text", "placeholder": "Start writing..." } } }}Template Usage
Section titled “Template Usage”<div class="content"> {{ attributes.articleBody|raw }}</div>Important
Section titled “Important”Always use the |raw filter when outputting rich-text content to preserve HTML formatting.
Use Case
Section titled “Use Case”Use Rich Text for:
- Blog post content
- Article bodies
- Any content requiring formatting (headings, lists, bold, italic)