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, biapar, Willr, Ingo, swaiba, simon_w

Img border not working correctly in TinyMCE


Reply

3 Posts   2073 Views

Avatar
Mohammed

8 January 2010 at 6:20pm (Last edited: 8 January 2010 6:20pm), Community Member, 25 Posts

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.

Avatar
kmartinsson

4 May 2010 at 3:15am Community Member, 5 Posts

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.

Avatar
rix

10 August 2010 at 3:02pm (Last edited: 10 August 2010 3:03pm), 1 Post

Hi,

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

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

hope that helps.