The file_entity module now support image field formatters for displays. When an image is inserted into a wysiwyg field with the Media module, a user can override file properties such as the alt, title, width and height. The file_entity module saves these variables into the $variables['item] array. The colorbox theme function can pick up these overrides and use them in its theme function.

CommentFileSizeAuthor
#1 colorbox-allow-overrides-2169461-1.patch880 bytesidebr
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

idebr’s picture

Status: Active » Needs review
FileSize
880 bytes

To test this feature:
- install latest media 2.x-dev with patch #19 from #2126755
- install latest wysiwyg 2.x-dev
- install latest ckeditor
- apply the attached patch

TwoD’s picture

Status: Needs review » Reviewed & tested by the community

The Media Wysiwyg patch in #2126755: Improve Media's WYSIWYG Macro handling has been committed now. I'm using this with a few other patches to improve macro handling in Media Wysiwyg, but since I'm also using Colorbox for some of the rendered images, much of what I need done (floating images left/right is a big issue) isn't possible without this patch as Colorbox currently ignores the style attributes.

frjo’s picture

Status: Reviewed & tested by the community » Fixed

  • frjo committed eedf4a9 on 7.x-2.x authored by idebr
    Issue #2169461 by idebr: Added Allow Colorbox image attributes to be...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.