RTE justify plugin not working in Dev Instance but working fine on my local | Community
Skip to main content
MayurSatav
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 11, 2023

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

  • February 11, 2023
  • 2 replies
  • 1169 views

Hi,

 

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.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Ritesh_Mittal
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 11, 2023

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.

 

Thanks,

Ritesh Mittal

MayurSatav
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 11, 2023

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> </div>

 

 

 

 

June 15, 2023

what is the fix for this issue? I am also facing the same issue.

September 20, 2023

Hi there! Did you solve this issue? At this moment I'm having the same issue!!