21305 Posts in 5736 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 660 Views |
-
in-line "style" gets stripped in 2.4.1

4 August 2010 at 11:40am
Hello,
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 -
Re: in-line "style" gets stripped in 2.4.1

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
| 660 Views | ||
|
Page:
1
|
Go to Top |



