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).
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.
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?
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
As mentioned, not ideal but easy to work around after all.
/Jan
is working on a reply...