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.

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   2745 Views

Avatar
ScottiouS

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.

Avatar
Sam

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?