Wysiwyg and image styles

Events happening in the community are now at Drupal community events on www.drupal.org.
prinds's picture

I have been looking for a good integration of image styles in wysiwyg editors, but so far I haven't found a simple and good solution for that.

So I decided to create a simple module, that provides a plugin, that makes a listbox/select in wysiwyg editors allowing the user to select a certain style for each image inserted in the editor.

Applying an image style simply changes the url of the image to the image style version of that image.

You can take a look at the module at http://drupal.org/sandbox/prinds/1214398

Currently it is a sandbox project.. I would like to add support for more editors (currently only TinyMCE is supported). I think there should also be a settings page allowing the administrator to limit which image styles should be available to the user (currently the builtin image styles are excluded)..

Also I had some trouble getting the js implementation of t() to work with the plugin. The strings never appeared in the ''Translate interface" page, so I ended up doing my own implementation of that.

If anyone can help me with any of these issues, especially getting the plugin to work with other editors, I would really appreciate it.

I hope this module will be useful to others. Let me know if I should try to make this a full project, or if I should wait until more editors are supported.

/Ole

Only local images are allowed.

Wysiwyg

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: