AEM6.3 RTE in Touch ui to support custom tags in source edit | Community
Skip to main content
srinivas_chann1
Level 7
March 20, 2020
Solved

AEM6.3 RTE in Touch ui to support custom tags in source edit

  • March 20, 2020
  • 2 replies
  • 3156 views
Hi,
 
We are using AEM6.3 with SP2
Classic:-
RTE in classic allows to give any custom tag like (<newtag>ff</newtag>) we can edit this in source edit option in RTE.
 
Touch ui:-
The same when given in touchUI , the custom tag is getting removed after we submit the RTE dialog and reopen.
Is there a way to make Touch UI RTE accept custom tag (<newtag>ff</newtag>) . Please help as how this could be resolved
 
 

 
Thanks
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 aemmarc2

If the custom tag is getting stripped it's likely happening from the XSS filter.

 

/apps/cq/xssprotection/config.xml

/libs/cq/xssprotection/config.xml

 

NOTE : AEM 6.3 is fast approaching end-of-core-support in April 2020. 

2 replies

srinivas_chann1
Level 7
March 21, 2020

Any inputs from any one as how this could be solved

aemmarc2Adobe EmployeeAccepted solution
Adobe Employee
March 23, 2020

If the custom tag is getting stripped it's likely happening from the XSS filter.

 

/apps/cq/xssprotection/config.xml

/libs/cq/xssprotection/config.xml

 

NOTE : AEM 6.3 is fast approaching end-of-core-support in April 2020. 

srinivas_chann1
Level 7
March 27, 2020

Hi Marc,

Thanks for the inputs 

 

I copied from /libs to /apps i.e /apps/cq/xssprotection/config.xml and added a new tag like below and it worked

<tag name="newtag" action="validate"/>

 

But have few more issues on this in RTE could you please provide your inputs that will be very helpful.

 

Now in RTE we have added this tag under paragraph to give an easy to author instead of using source edit

 

1> When they click on it shows as the newtag from paragraph option in RTE and then click on h1 , h2 tags from paragraph it does not remove <newtag> from text already selected. But when you first try with h1 for new text and then you select h2 it will replace the tag as h2 without any h1 tag in it.

 

So need inputs here as when we select newtag from paragraph option in RTE and then click on h1 , h2 tags from paragraph it does not remove/replace <newtag> from text already selected to just h1 or h2 tag

 

 

 

 

 

 

 

 

 

Thanks