Add rich text to a page

Note

This topic explains how to configure components previously built with Content Editor. To learn about components built with Components instead, visit the Components documentation.

Using a Rich Text component lets you easily add, inline edit, and format text on a webpage. Rich Text components are initially built in the Content Editor, and are available for use in the left-hand pane of the page builder, on the Components tab. Rich Text components display text and tables as they will appear on your live website.

Warning

Don't add JavaScript snippets to a rich text editor field, or you might trigger a Sorry, you have been blocked error that prevents malicious scripts from running. Instead, add JavaScript elements to your front-end application.

This doesn't apply to Google Tag Manager scripts: you can safely add these to rich text fields and they will function correctly.

To add a Rich Text component to a page:

  1. In the page builder Editor mode, in the left-hand pane, on the Site tree tab, click the page you want to add a component to.
  2. On the Components tab, scroll down to find the Rich Text component icon.
  3. Click and drag the icon onto a placeholder on the canvas of the page.
  4. Enter the text you want to add to the page, or add a table or a media file to the component.
The toolbar of the CKEditor

Using the CKEditor toolbar, you can apply the following options to the contents of a Rich Text component:

IconLabelDescription
BoldBoldMake the selected text bold.
ItalicItalicItalicize the selected text.
UnderlineUnderlineUnderline the selected text.
StrikethroughStrikethroughStrike the selected text.
Block quoteBlock quoteInclude block quotations or pull quotes in your content.
SuperscripSuperscriptConvert the selected text to (x).
SubscriptSubscriptConvert the selected text to (x).
Font colorFont colorChange the color of the font. Includes a color picker.
Font background colorFont background colorChange the color of the background of the font. Includes a color picker.
StylesHeadingSelect a predefined paragraph style to apply custom styling and semantic values to the content.
AlignmentText alignmentAlign left, align right, align center, or justify.
Bulleted listBulleted listAdd a bulleted list.
Numbered listNumbered listAdd a numbered list.
Note

You can start a numbered list from any value. To do this, expand the numbered list type in the rich text editor’s toolbar, select

list properties, and enter the chosen start value.
Horizontal lineHorizontal lineAdd a horizontal line.
IndentationDecrease or Increase indentIncrease or decrease the indentation of a paragraph.
LinkLinkCreate or edit a hyperlink. You can also use this to link to an email address.
Note

CKEditor automatically recognizes email links, so you don't need to specify the link type to prompt the device’s email client when clicked.

Select mediaSelect mediaInsert a media file.
TableTableAdd a table.
Remove formatRemove formatRemove formatting from the selected text.
Edit format codeEdit format codeOpen the source code editor. You can also paste iFrame tags into the HTML editor to embed an iFrame in the field.
Reset field valueReset field valueErase all text in the field.
Insert internal linkInsert internal linkCreate a hyperlink to an internal page, chosen from the site tree.
Add phone numberAdd phone numberCreate a hyperlink to a phone number, prompting the device's phone client when clicked.
Note

The rich text editor supports keyboard shortcuts.

The features available in the toolbar depends on the CKEditor profile that was assigned to the site.

If you have suggestions for improving this article, let us know!