Rich Text
The Rich Text Component supports a variety of text formats inside of one content block. Studio Users can format text, including bold, underline, and italics, as well as text alignment, color, and size. Content can include bulleted and numbered lists. Individual words can also be hyperlinked
Ideas for Using Rich Text
- Make your content pop with color. Set a background color that contrasts well with your font color. Then add content padding and 0px Placement padding to allow the section of text to bleed on the sides.
- Create a headline with Rich Text by placing it above another Component, such as Card Carousel, Tabbed Content, or Square Avatar Card.
- Create a caption by placing Rich Text below an Image or video.
- Write a long content piece, and add bold and italicized words to call out important details of the article.
- Provide company contact information by adding links to phone numbers and emails.
If you’re looking for a streamlined way to organize written content, check out Text Only Card.
Rich Text Properties
The Rich Text Component has the following properties:
- Component Id
- Content
Component Id
This sets the name of the Rich Text Component in the experience. The Component Id can be referenced using JavaScript to add more functionality to the experience as needed.
It is a best practice to use only letters without spaces for the Component Id. Symbols, spaces, and numbers are not recommended.
Content
Studio users can choose to add content to Rich Text by adding Content from Text or using the Rich Text Editor.
Selecting Content from Text will automatically pull in the reusable text along with its formatting you designated when creating the text.
Using Rich Text Editor
If you've selected Rich Text Editor, click the "Edit" button to add content. Once you've added your content, you can bold, italicize, change the alignment of the text, and more.
You can also select your desired paragraph formatting options in the Rich Text Editor. The paragraph formating options will display the font styles for H1 through H4, and paragraphs that you set up in Branding. This means it will automatically pull in the font, color, and size you designated for each of these headings, making creating experiences even faster.
Watch: How to Update Branding
You can see in the example below the paragraph formatting options for H1 through H4, and paragraph display a preview of what the text will look like. Make sure you update App Builder to v2.0.7 or above, Page Builder to v6.1.9, or above, and update your applicable Component Sets to take advantage of this functionality.
Styling
Set Background Color - Toggle on or off to display a background color.
Background Color - Sets the color of the background. There are two ways to set the Background Color: Click the Color Swatch to choose from the experience's Color Palette or enter the hex code in the text field.
Top Content Padding - Enter a value in pixels to determine how much space will appear on top of the text within the Component.
Bottom Content Padding - Enter a value in pixels to determine how much space will appear under the text within the Component.
Left Content Padding - Enter a value in pixels to determine how much space will appear to the left of the text within the Component.
Righ Content Padding - Enter a value in pixels to determine how much space will appear to the left of the text within the Component.
Rich Text Placement Settings
The Placement Settings for the Component sets which column(s) the Component will appear. Each Page of the app can have a different number of columns that are set in the Layout section of the Page Settings. The following Placement settings are available for this Component:
- Column Start - Sets the column where the Component will start.
- Column Span - Sets how many columns the Component will span.
- Padding - Sets how much space will appear on the top, bottom, left, and right of the Component. When building a Page with multiple Components, the Padding will determine the overall spacing between Components.
- Display Mode - Sets how the Component is displayed. If Both is selected, the Component will always show. Both are the default option. If Optimal is selected, the Component will only show if the browser supports the experience. The main supported browsers are Chrome and Safari. If Degraded is selected, the Component will only show if the browser does not support the experience. The main unsupported browser is Internet Explorer.