Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

RTE justify plugin not working in Dev Instance but working fine on my local


Community Advisor



In RTE, I am trying to justify content using the justify plugin. In the below gif, you can see that content gets aligned in RTE, but after dialog submission text alignment does not work. 



However, the same code and RTE work fine in my local environment. It shows an error in the console whenever I click on the justify plugin.



2 Replies


Community Advisor

Hi @MayurSatav ,




After dialog submit, just try inspecting the HTML through browser element, do you see the style text-align:center added to the text? If yes, then it might be because of some other design/CSS overriding the center alignment.



Ritesh Mittal


Community Advisor

That i already checked only empty style attribute is coming. But you can see under xdm:text that inline style for text align is appearing.

Sharing DOM with you.





<div class="cmp-text" data-cmp-data-layer="{"text-ad3342e4f1":{"@type":"aem-mysite-base/components/content/text","repo:modifyDate":"2023-02-11T09:29:54Z","xdm:text":"<h1 style=\"text-align: center;\">Lorem Ipsum</h1>\r\n"}}" id="text-ad3342e4f1">
    <h1 style>Lorem Ipsum</h1>