enable Rich text editor to include flex css styles | Community
Skip to main content
Level 2
December 2, 2021
Solved

enable Rich text editor to include flex css styles

  • December 2, 2021
  • 1 reply
  • 954 views

When I add the below in RTE source code editor and click on save, text component removes the style.

<div style="flex:1 3 33%">test</div>

 

I am able to add other styles like font-weight, color.. But only this "flex" style seems to cause this issue.

Any suggestions on how to enable this in RTE or turn off the RTE validation ? 

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

Hi,

you should check the CSS validation processing rules at /libs/cq/xssprotection/config.xml

 

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
December 2, 2021

Hi,

you should check the CSS validation processing rules at /libs/cq/xssprotection/config.xml

 

Arun Patidar