Skip to content

Rich Text Control

WordPress rich text editor (TinyMCE) for formatted content with HTML support.

OptionTypeDefaultDescription
labelstring-Field label
controlstringrich-textControl type
placeholderstring-Placeholder text
defaultstring-Default value
{
"attributes": {
"articleBody": {
"type": "string",
"default": "",
"wbs": {
"label": "Article Body",
"control": "rich-text",
"placeholder": "Start writing..."
}
}
}
}
<div class="content">
{{ attributes.articleBody|raw }}
</div>

Always use the |raw filter when outputting rich-text content to preserve HTML formatting.

Use Rich Text for:

  • Blog post content
  • Article bodies
  • Any content requiring formatting (headings, lists, bold, italic)