Yes, that is of course one solution, but not so user friendly. The custom tag is not obvious to users. And besides, the tinymce editor already has a text-color button, and does already produce the correct output. It is just a matter, that eZ publish removes thee tags. But if the custom tag is the only solution, I guess there is no other way around this problem.
Instead of a span, can't you make it a <div>, which is not removed on publishing, to which a CSS class is systematically applied, making the <div> an inline entity ?
Cheers,
--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board
Thank you Peter and Nicolas for your comments. I looked through the code, and I saw that the editor actually accepts span-tags, just only with very specifc style-attributes. For example the editor will convert <span style="font-weight:bold"> to <bold>. I could also add my styles here, with the risks this hack implies. Else i'll have to try the div solution.
/m
You must be logged in to post messages in this topic!