Rich text is a feature that allows you to group different types of content under one tag. You can pull content from the CMS or add it manually. With rich text, you can include various elements like text, images, lists, etc. You can also add custom HTML code if you need specific structures.

Adding Rich Text

You can easily add a Rich Text tag to your project by selecting it from the tag bar.

To open your Rich Text tag, simply double-click on it, and the editor will appear.

Adding content

You can immediately start typing text inside the Rich Text tag, and it will be treated as a paragraph.

Elements list

By clicking on the plus icon, you'll see a list of elements you can add to your Rich Text.

Headings

When you add a heading inside the Rich Text, you'll see a label on the right side indicating which heading tag is being used.

You can easily switch between headings by clicking on the dots next to your heading. This will bring up a list of heading types, allowing you to transform your heading into a different type.

Quote

Quote blocks are useful for adding citations to your Rich Text. You can type the citation text, and there's a separate field below for the author's information.

Delimiter

A delimiter creates a horizontal line that spans the full width of your Rich Text tag. This is helpful for separating your content into multiple groups.

Images

You can easily add images to your Rich Text using the image field. A popup will appear, allowing you to upload an image directly from your device into the Rich Text. With the image field, you also have the option to add a caption to your image, which will appear as text below the image.

Code

If you need to display code as text, the code field is very useful. It shows your code with a unique design.

Note: This code won't be executed, it will only be displayed as plain text.

Table

You can create tables in Rich Text by adding a table element and typing your content into the table fields. You can add new columns or rows in various ways and remove any unwanted ones.

Raw HTML

This field is designed for more advanced developers. With it, you can type custom HTML to create unique structures inside your Rich Text. You can also use custom CSS to style your structure as desired.

Lists

You can add an unordered list by default to your project and create new list items by pressing Enter on your keyboard. You can easily switch between ordered and unordered lists by clicking on the dots next to your list.

YouTube and Vimeo embeds

If you want to include a YouTube or Vimeo video in your Rich Text, just copy the video URL and paste it into the Rich Text editor. The embed will be created automatically.

Text options

If you highlight a part of the text, you'll see additional options for that specific text, such as bold, italic, underline, or converting the text into a link. You can even assign an ID or a class to that part of the text and apply custom styles through CSS.

Transforming text tags

If you want to change your text tag from one type to another, such as transforming a paragraph into a heading, highlight your text and choose the new tag from the dropdown menu.

Highlight options

If you want to highlight your text block, click on the dots on the side, and you can choose from three predefined highlight styles.

Styling elements

To style elements inside your Rich Text, use instances that you set on your Rich Text tag. Select your Rich Text, open the instance menu, and choose the tag you want to style from the Subject dropdown. Once the instance is created, you can apply styles through the designer panel.

Note: The styles you set through an instance, such as for Heading 2, will be applied to all Heading 2 tags inside the Rich Text.

Advanced styles

Target Class

You can also target specific tags or classes inside your Rich Text. To do this, go to the live site and find your Rich Text. Right-click on the element you want to edit, open the Inspect tool, and see if the tag contains a class. If it does, copy that class.

After you've copied the class name, go back to the builder and create an instance on the Rich Text. In the instance popup, switch to the custom option, add a space, then a dot, and paste the class name.

Note: Adding a dot is important only when working with classes.

After that, you can save the instance and set styles through the designer panel.

Target Tag

In some cases, there won't be a class on an element. If this happens, the method is similar. Go to the live site, right-click on the desired element, open the Inspect tool, and copy the tag name.

After that, return to the builder, select the Rich Text tag, open the instance menu, switch to custom, add a space, paste the tag name (without a dot since we're not working with a class) and save the instance. After that, you can proceed to edit your instance through the designer panel.

Connect Rich Text to CMS

Connecting your Rich Text tag to pull data from a CMS is simple. First, ensure that you have added a Rich Text field to your collection.

In your collection, you'll have the same options in your Rich Text field as you do with the tag.

Connecting your CMS field to a Rich Text tag is just like connecting any other text field. First, connect your collection in the advanced panel. Then, in the settings panel, open the variables menu. Under the value dropdown, find your field, select it, and hit the save button. After that, your Rich Text tag will pull data from the CMS field.