November Happy Hour will be moved to Thursday December 5th.

Rich Text Editor Block lost indentation

EVT
EVT
Vote:
 

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?

#305724
Jul 26, 2023 10:01
Vote:
 

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" ?>
<module>
    <clientResources>
        <add name="epi-cms.widgets.base" path="Styles/editorStyles.css" resourceType="Style"/>
    </clientResources>
</module>

Paul

#305776
Edited, Jul 27, 2023 8:09
EVT
Vote:
 

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>();
#305838
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.