Sitecake 2.4.5 removes elements from within as soon as the editor loads, even when CSS selectors are defined as descendants: changes xyz to xyz
.sc-content p span.myClass{…}
sorry-- trying HTML again:
<p><span class="myclass">xyz</span><p>
changes to
<p>xyz</p>
Sitecake doesn’t recognize span within <p>
tag. Only supported inline elements are <strong>
, <em>
and <a>
.
thanks!
I’m able to change all my SPANs to EMs (but still need a class applied to the EM element). That also gets stripped out when editing (even though I have defined that class as a descendant of its parent).
You have to define class on <p>
element and than style <em>
's via <p>
e.g
.sc-content p.some-class em {
/*your style here*/
}