Copied to clipboard

Flag this post as spam?

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


  • Zac 222 posts 574 karma points
    May 13, 2014 @ 12:31
    Zac
    0

    TinyMCE Styles picker is adding a span tag around the element

    We are using Umbraco 7.1.1, and whenever we select an element (be it a p tag or an img element) in TinyMCE, and choose our Style (which simply needs to add a class), it's putting in a span with class around our element.

    I don't remember this happening in previous versions of Umbraco. I've been struggling to find documentaiton about the Umbraco version of TinyMCE styles (although I did see some people talking about ditching Umbraco's TinyMC styles 'plugin' and using the default one, although that must be unnccesary).

    Any ideas?

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    May 13, 2014 @ 12:35
    Jan Skovgaard
    100

    Hi Zac

    This is known behavior. I've seen this in early and late versions of 4,6 and 7 as well.

    If it's not reported as an issue on the issue tracker please feel free to do so.

    I've also seen that sometimes the class is placed correctly on the desired tag without the <span> and sometimes the <span> appears with the class on it.

    Usually I just make sure to add my styles like this

    .myclass,
    .myclass p{
    /*Styles*/
    }
    

    As mentioned, not ideal but easy to work around after all.

    /Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies