ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

RTE stripping out tag class

June 13, 2013 11:46am

Subscribe [1]
  • #1 / Jun 13, 2013 11:46am

    Boxhead

    13 posts

    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

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases