Removed one of the heading in RTE paraformat. But for the heading applied early to the existing page has the same heading and that needs to be changed to one of the available heading option. Is there any option to update through the listeners ?
I am not aware of any way to do this. Lets see if other AEM Community members have any thoughts.
I don't see any supported way to do that via listeners.
You will have to do the formatting manually.
I have solved by modifying the dom element modification from h1 to h2 either by inner html or append to the element after clearing that.
But I found the element with hidden that also holds the text , so I modified both the element. I am not sure this is the right way to do, please suggest.