Copied to clipboard

Flag this post as spam?

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


  • David Clapperton 7 posts 57 karma points
    Oct 06, 2016 @ 10:51
    David Clapperton
    0

    SVG tag inside RTE

    Anyone know if its possible to put svg into the RTE using the tinymce templates plugin?

    eg:

    <svg>
            <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href='/staticmedia/svgs/mysprite.svg"></use>
    </svg>
    

    In tried altering the validelements in the tinymce config but the output does this:

    <svg> <use xlink="href"></use> </svg> 
    
  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Oct 06, 2016 @ 11:23
    Alex Skrypnyk
    100

    Hi David,

    Maybe it will be better to create Macro for it?

    You will be able to add URL as param of Macro and past it in RTE.

    Thanks,

    Alex

  • David Clapperton 7 posts 57 karma points
    Oct 06, 2016 @ 11:27
    David Clapperton
    0

    Ah ye good idea! Thanks Alex.

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Oct 06, 2016 @ 11:29
    Alex Skrypnyk
    0

    Topic is solved.

    Have a nice day David.

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft