Jump to:

517 Posts in 247 Topics by 260 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » Img border not working correctly in TinyMCE

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 2031 Views
  • Mohammed
    Avatar
    Community Member
    25 Posts

    Img border not working correctly in TinyMCE Link to this post

    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.

  • kmartinsson
    Avatar
    Community Member
    5 Posts

    Re: Img border not working correctly in TinyMCE Link to this post

    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.

  • rix
    Avatar
    1 Post

    Re: Img border not working correctly in TinyMCE Link to this 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.

    2031 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.