Rich text component CSS
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/Selector | Description |
|---|---|
.page-component-content | The 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/Selector | Description |
|---|---|
.mw-bs .mce-tinymce | The 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-container | The 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-body | The 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-panel | The 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-part | The 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-menubar | The 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} |