Closed (fixed)
Project:
Colorbox
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2011 at 15:10 UTC
Updated:
17 Oct 2011 at 23:09 UTC
Jump to comment: Most recent file
Comments
Comment #1
jox commentedComment #2
jox commentedHere is an example to explain this more in detail:
Suppose a content type with an image field with insert button and two syles enabled: 'medium' and 'Colorbox medium'.
Now an image is uploaded, stlye 'medium' is selected and the insert button is pressed. The class attribute of the resulting img will include
image-medium.Now stlye 'Colorbox medium' is selected and the insert button is pressed. The class attribute of the resulting img will not include
image-medium(nor something silmilar).Comment #3
frjo commentedCould you please try this patch instead to se if it works for you?
It adds the image-[stylename] class and runs alla classes through drupal_html_class().
Comment #4
jox commentedGreat. Works fine, thanks.
One minor thing. I would name the variable $classes instead of $class, since it is an array that can contain multiple values. That would be just a little more meaningful naming. A modified patch is attached.
Comment #5
frjo commentedCommitted to 7-dev. Thanks for testing!
Comment #7
zoo commentedIs there by any chance a fix which is back ported for the 6.x version of the colorbox module? Thank you!
Comment #8
kerios83 commentedGreat I have been waiting for this !