Custom Rich Text Styles Not Visible in Edit Mode
- April 11, 2025
- 2 replies
- 566 views
Hi everyone,
In the AEM project I'm working on, we've extended the default Rich Text Editor configuration. In addition to the standard formatting options like bold, italic, and underline, we added a custom "styles" dropdown. This lets authors apply specific font styles and sizes by assigning custom CSS classes to the text (e.g. notoSans-xxs-semiBold), defined within our client libraries.
While everything works as expected on the published pages, in edit mode, the applied custom styles are not visible. The class is correctly added to the element, but the clientlib that defines the style doesn’t seem to be loaded at that point — which prevents the formatting from showing in the authoring environment.
I've attached two screenshots:
First: how the styled text appears correctly in published mode.
Second: how the same styled text appears unstyled in edit mode, despite the class being present in the markup.
Has anyone encountered this issue? Is there a recommended way to ensure that the required clientlib is loaded during edit mode so that these custom styles are visible in the RTE?
Any help or suggestions would be much appreciated.
Thanks,
Adriana