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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

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

Custom CSS styles in WYSIWYG image toolbar.

Go to End

2 Posts   2594 Views


Community Member, 54 Posts

24 July 2007 at 12:38pm

So I want to create a custom style or an alternative couple of styles to be able to apply to images through the editor. I see that in /saphire/forms/HtmlEditorField.php it contains the relevant function: ImageForm() whcih defines the dropdown for the styles. Eg. Align right with text wrap etc..

So I could easily add my own styles to this function however I want to do it the smart way. How would one go about overriding this function and putting my own values in there from within the mysite folder?

Many thanks for the help here.


Administrator, 690 Posts

24 July 2007 at 6:26pm

I believe that Mateusz, a summer of coder, is developing a function to support this.

Mateusz - care to comment on how you're proceeding with the lightbox/greybox functionality in the image editor?