Try our conversational search powered by Generative AI!

Rich Text Editor Block lost indentation


After upgrading the project we have noticed that content in Rich Text Editor Block in a content area lost indentation (centralization...???) that it had before and now all the content is left sided. 

Anyone else ran into same issue?

Jul 26, 2023 10:01

Hi Emilija,

In CMS 12 the styling configuration for the xhtmlstring changed.

This used to be set in the web.config, in CMS 12 this is set through the module.config.

<?xml version="1.0" encoding="utf-8" ?>
        <add name="epi-cms.widgets.base" path="Styles/editorStyles.css" resourceType="Style"/>


Edited, Jul 27, 2023 8:09

We have custom ContentAreaRenderer which had an initialization module similar to the one this link. We followed this guide for changes related to CMS 12 but  noticed that no break points are being hit in the class that defined style changes for the rich text editor. 

What we missed apparently was to add this row

services.AddTransient<ContentAreaRenderer, CUSTOMRENDERERNAME>();
Jul 28, 2023 5:47
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.