I’ve made a third party RTE button which allows the user to wrap a character in
<span class="dropcap"></span>
so that the character can be manipulated when rendered using CSS.
As you would expect, this is primarily for use on first character of a paragraph.
The problem is the RTE seems to be stripping the class=“dropcap” from the span in the editor, leaving just the plain span tags in place, but it only does this on the very first character in a paragraph. So rather than getting
<span class="dropcap">G</span>lasgow is a beautiful city.it outputs
<span>G</span>lasgow is a beautiful city.If you apply the dropcap to a character other than the first one in the paragraph it works as expected so I don’t think it’s anything to do with the code of the RTE add on.
I’m not sure if this a problem from the WysiHat jQuery plugin or from the RTE module.
I’m running EE 2.6.1.
Thanks