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.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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.
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.