
Do you know how to add a custom class using “new” text editor CKEditor? I want to add a custom "<p class="my-custom-class"></p>"
Sounds familiar? This is a common query which XM Cloud developers are grappling on Sitecore developer community channels, including Slack.
In fact, a quick search reveals an active topic as shown below:

What is CKEditor?
On May 8, 2025 Sitecore deprecated the legacy Pages rich text editor in XM Cloud. This was previously accessible from the right-hand side panel. The newer CKEditor rich text editor becomes the default editor. The link I have shared above provides guidance on how to enable the newer CKEditor rich text editor. This involves adding the env variable PAGES_ENABLE_NEW_RTE_EDITOR in the Deploy app and set its value to ‘true’.
What are some of the benefits of CKEditor
The CKEditor significantly improves Rich Text Editing experience within XM Cloud Pages, introducing several new features such as:
- capability to add tables
- capability to find and replace text
- capability to style images with more options
- supporting new markup (this was not possible with previous legacy editor)

*The image above has been adopted from developers.sitecore.com
But how do I add custom class to CKEditor?
With all these new capabilities and UX improvements, unfortunately you can not customize the CKEditor in XM Cloud (yet). As mentioned earlier, there seems to be demand for a capability to customize the list of the options available from the formatting drop down.
Makes sense to be able to create custom classes to be included in the list right?
Back to you Sitecore XM Cloud team.
What are other developers of XM Cloud saying?
Below are some of the answers to this question on Slack:



Next steps
Joined Sitecore Slack channel yet? Head over to https://sitecore.chat to join the community. In the meantime, stay tuned and please keep any eye on this feature request. Also please give us any feedback or comments.


