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.

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.

Customising the CMS /

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

Customizing TinyMCE image properties to allow for a class selection


Go to End


3 Posts   3449 Views

Avatar
dynamite

Community Member, 66 Posts

26 April 2009 at 2:04am

Hello,

I was wondering how to allow for a drop-down list of CSS classes when inserting or editing an image.

Or, allow them to specify the margin for all 4 sides of the image, instead of just "hspace" and "vspace." (a client would like to just add padding on the right and bottom of an image)

Thanks so much!

Avatar
dynamite

Community Member, 66 Posts

1 May 2009 at 12:32am

*bump*

Anyone have an idea? Or a general direction of where to start looking? :-)

Thanks!

Avatar
scpi

Community Member, 21 Posts

2 May 2009 at 9:42am

I haven't been using SilverStripe for long, but I think you might be able to do this by writing a plugin for TinyMCE. I was looking to do something similar, and found the info here: http://wiki.moxiecode.com/index.php/TinyMCE:Create_plugin/3.x