Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Custom CSS styles in WYSIWYG image toolbar.

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

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

Page: 1
Go to End
Author Topic: 2341 Views
  • ScottiouS
    Community Member
    54 Posts

    Custom CSS styles in WYSIWYG image toolbar. Link to this post

    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.

  • Sam
    679 Posts

    Re: Custom CSS styles in WYSIWYG image toolbar. Link to this post

    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?

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.