I am setting up the wysiwyg editor and I am trying to create an icon that will strip the selected h2 text.
In the previous version, the team worked perfectly:
oRTE.document.execCommand("removeformat", false, "");
But in the current version, although this command successfully removes tags from the selected text such as bold, underline, italics, it leaves the h2 tag intact.
(Interestingly, execCommand("formatblock"...) successfully creates the h2 tag.)
I think I will have to give up execCommand and find another way, but I also think that it will be much more than just one line of code! I would be grateful for the suggestions.
source share