• Resolved mmoniaga

    (@mmoniaga)


    Hi there,

    Great plugin! Created what i need with the roll-your-own method in the html mode and all worked perfectly until some of the content editors in the team edited using the visual mode, which stripped out the ‘rel’ attribute within the <div>.

    Any ideas on how i can fix this without telling them not to use visual editor?

    code is something like this:

    <div class="collapseomatic" id="team" rel="group-highlander"><a href="#top"><img content /></a>
    <h2>Title</h2>
    <p>Content</p>
    </div>

    thanks!

    http://wordpress.org/extend/plugins/jquery-collapse-o-matic/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Baden

    (@baden03)

    yeah… that visual editor is a real nasty thing. If this continues to be a problem, you might consider separating the the roll-your-own elements out of the content and inserting them in your template.

    sorry, we know how it is with content editors that insist on using the visual editor.

    Pat K

    (@blackcapdesign)

    Hello! Great plugin!!! I too have been having the problem with rel attribute being stripped out by the Visual Editor when clients switch between it and Text mode. I searched for an found this:
    https://snipt.net/jamesw/prevent-tinymce-from-stripping-schemaorg-attributes-in-wordpress/

    I’ve been testing it and it seems to be working great. Just added the snippet to my functions.php file and voila! No more stripping!

    …if it breaks something horribly I’ll re-post.

    Cheers,
    PK @ BlackCapDesign

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Roll-your-own and rel attribute’ is closed to new replies.