Rich text

Formatted body text, edited in a visual editor, for headings, links, lists and inline images.

When it is used

Rich text is the one control nanoesis never chooses for you. A plain paragraph stays plain text, so an ordinary block never turns into a surprise editor.

You opt in by adding data-type="richtext" to the element that holds the token. From then on that field is edited visually and stored as formatted HTML.

Example

Add data-type="richtext" to the element that holds the token:

<div data-type="richtext">{body}</div>

In the editor

In the editor this field becomes a visual text editor: a toolbar for headings, bold, links and lists, with what-you-see-is-what-you-get formatting. Authors never touch HTML.

Reach for it whenever a field is the main body of a page. For a single line, like a title, use short text instead.