Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Heine Stick 12 posts 92 karma points
    Feb 11, 2016 @ 09:40
    Heine Stick
    0

    Lightbox Functionality in RTE

    Hullo,

    So I've run into a slight problem. Basically I want to enable Lightbox functionality within an RTE.

    The problem is that when I enter this into the RTE (HTML mode)...

    <a href="/media/381031/farvekort_1_large.jpg" data-lightbox="color"> <img src="/media/381025/farvekort_1_small.jpg"  /> </a>
    

    and then save the document, the RTE changes it to...

    <a href="/media/381031/farvekort_1_large.jpg"> <img src="/media/381025/farvekort_1_small.jpg" alt="" rel="145,180" /> </a>
    

    Is there some kind of workaround to this, so I can use Lightbox within an RTE?

    It's worth mentioning, of course, that Lightbox works just fine elsewhere on the site, where it isn't called inside an RTE.

  • Kasper Holm 47 posts 180 karma points
    Feb 11, 2016 @ 09:44
    Kasper Holm
    100

    Hello Heine

    if you look in config/tinyMceConfig.config you will find

  • Heine Stick 12 posts 92 karma points
    Feb 12, 2016 @ 09:51
    Heine Stick
    0

    You pointed me in the right direction, and for that I'm thankful. :)

  • Kasper Holm 47 posts 180 karma points
    Feb 12, 2016 @ 10:45
    Kasper Holm
    0

    Any time ;)

Please Sign in or register to post replies

Write your reply to:

Draft