Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Content Editor Discussions /

Forum for content editors and CMS users.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Img border not working correctly in TinyMCE

Go to End

3 Posts   2940 Views


Community Member, 25 Posts

8 January 2010 at 6:20pm

Edited: 08/01/2010 6:20pm

I noticed when I right click on an image using the TinyMCE editor, and select "Insert/edit image", a window comes up allowing me to add a border to the image. When I set a value, such as "10", the border shows up in the editor, however, the boarder does not appear on the published site. Any suggestions on how to fix this? I'm using SilverStripe 2.3.4.


Community Member, 5 Posts

4 May 2010 at 3:15am

I have this problem as well. I'm running Silverstripe 2.3.5 with the Blackcandy theme. No borders even though I've removed "borders : none;" in typography.css in the ".typography img" section.

Any suggestions appreciated.


1 Post

10 August 2010 at 3:02pm

Edited: 10/08/2010 3:03pm


TinyMCE is using CSS for styling the border and not using the border attributes of img. You can fix this by adding 'style' as valid elements in your mysite/_config.php HtmlEditorConfig

"img[class|src|...|...|style]," <- see the "style" element for img.

hope that helps.