Text
Renders a rich text (WYSIWYG) editor and returns HTML.
Renders a rich text (WYSIWYG) editor and returns HTML. The editor allows creators to format text with headings, bold, italic, links and lists.
Returns: An HTML string.
Example
---
attributes:
body:
type: text
label: Body text
default: <p>Enter some nice copy about your experience.</p>
---<div class="text-field">{{ body }}</div>Usage
Since the text variable returns HTML, you should output it directly without escaping. Wrapping it in a container element is recommended for applying consistent typography styles.
---
attributes:
description:
type: text
label: Description
default: <p>Creating experiences is an art. Whether you're launching a new idea or taking your business to the next level.</p>
---{% if description != blank %}
<div class="block__description text-field">
{{ description }}
</div>
{% endif %}