22975 Posts in 11620 Topics by 2826 members
|Go to End|
4 August 2010 at 11:40am
Went from 2.3 to 2.4.1. If I modify some of the html in the tinymce editor and hit save it friggin strips it out. I don't make it a habit but at times we have to put up a quick page for a month or so and something doesn't already fit a rule in the CSS. In this case I have a logo that is visually off centered and wanted to do this:
<img style="margin-left: -20px;" src="assets/Uploads/FOS/TheBigBay-logo.jpg" alt="the big bay logo" width="255" height="134" />
but tinymce does this after a save:
<img src="assets/Uploads/FOS/TheBigBay-logo.jpg" alt="the big bay logo" width="255" height="134" />
notice the - style="margin-left: -20px;" is gone.
Please any clues for a work around, it will help save my sanity!
Thanks in Advance- Alex - mmsd
18 August 2010 at 4:09am
Me too - help?
18 August 2010 at 11:07am
I don't think that style is an allowed attribute of img by default in tinymce. You can change the settings in your mysite/_config.php file as per: http://doc.silverstripe.org/htmleditorconfig#customizing_allowed_html
|Go to Top|