Could some one help me as how to replace the custom format.
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