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.

Archive /

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

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

Custom CSS styles in WYSIWYG image toolbar.


Reply


2 Posts   2403 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, 685 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?