Add rich text to a page
This topic explains how to configure components previously built with Content Editor. To learn about components built with XM Cloud Components instead, visit the XM Cloud Components documentation.
Using a Rich Text component lets you easily add 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 XM Cloud Pages, on the Components tab.
To enable the latest rich text editing capabilities from CKEditor, such as adding a table to a Rich Text component, your app must use JSS 21.5.2 or later. Also, a developer needs to add PAGES_ENABLE_NEW_RTE_EDITOR
as an environment variable in the XM Cloud Deploy app, and then redeploy the environment.
This type of component can be styled by applying information from the style sheet for your website. Also, you can use them to perform inline edits, which means editing the text of the component directly on the page in Pages. In short, Rich Text components display text and tables as they will appear on your live website.
To add a Rich Text component to a page:
-
In XM Cloud Pages Editor mode, in the left-hand pane, on the Site tree tab, click the page you want to add a component to.
-
On the Components tab, scroll down to find the Rich Text component icon.
-
Click and drag the icon onto a placeholder on the canvas of the page.
-
Enter the text you want to add to the page, or add a table or a media file to the component.
You can apply the following options to the contents of a Rich Text component:
-
Text formatting such as bold, italic, underline, block quote, strikethrough, subscript, and superscript.
-
Predefined paragraph style, to apply customized styles and semantic values to content created in the editor.
-
Text alignment, bulleted and numbered lists, and horizontal lines.
NoteYou 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.
-
Indentation.
The rich text editor supports keyboard shortcuts.
In addition, you can use the toolbar to:
-
Create or edit a hyperlink .
-
Find and replace text .
-
Remove formatting from highlighted text .
-
Open the source code editor .
-
Erase all text entered in the field
With CKEditor you can:
-
Create a hyperlink to an internal page, chosen from the site tree.
-
Create a hyperlink to a phone number, prompting the device's phone client when clicked.
NoteCKEditor automatically recognizes email links, so you don't need to specify the link type to prompt the device’s email client when clicked.
-
Paste iFrame tags into the HTML editor to embed an iFrame in the field.