Skip to main content
Feedback

Rich text component CSS

warning

The content on this page is outdated and will not receive updates. For the most up-to-date functionality, refer to Setting up and managing flows.

This topic provides examples of the main CSS classes/selectors you can use to customize rich text components.

Default player CSS

You can use the following main classes/selectors to apply additional CSS styling to rich text components in a flow running the default player.

Class/SelectorDescription
.page-component-contentThe main class applied to the entire rich text component in a flow.

For example, to increase the padding around all rich text components in a flow:
.page-component-content {padding:15px}

Default legacy player CSS

The rich text component uses the TinyMCE content editor when running the default legacy player, and is not able to be easily styled simply by targeting CSS classes/selectors. However, you can identify and target the .mce-* stylesheet classes if required.

You can use the following classes/selectors to apply additional CSS styling to rich text components in a flow running the default legacy player.

Class/SelectorDescription
.mw-bs .mce-tinymceThe main class applied to the entire area of the component.

For example, to add a border around the component:
.mw-bs .mce-tinymce {border:1px solid black}
.mw-bs .mce-containerThe main class applied to the different <DIV> containers that make up the component.

For example, to add padding to each container:
.mw-bs .mce-container {padding:10px}
.mw-bs .mce-container-bodyThe main class applied to the different <DIV> containers that make up the body of the component.

For example, to add padding to each body container:
.mw-bs .mce-container-body {padding:10px}
.mw-bs .mce-panelThe main class applied to the different <DIV> containers that make up the body panels of the component.

For example, to add padding to each body panel container:
.mw-bs .mce-panel {padding:10px}
.mw-bs .mce-top-partThe main class applied to the top part of the component, i.e. the menu bar and button toolbar.

For example, to modify the background color of the top part of the component:
.mw-bs .mce-top-part {background:#cccccc}
.mw-bs .mce-menubarThe main class applied to the menu bar of the component.

For example, to modify the background color of the menu bar:
.mw-bs .mce-menubar {background:#cccccc}
On this Page