Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I used wysiwyg_imagefield to insert images into content body.
However images inserted into body are ordinary img tag,
How could I make images to have colorbox effect ?
Comments
Comment #1
frjo CreditAttribution: frjo commentedThe easiest way is to use the excellent Insert module instead of wysiwyg_imagefield.
http://drupal.org/project/insert
On the Colorbox project page you will find a screencast about how to set up Colorbox and Insert module.
If you want to keep wysiwyg_imagefield you need to change its output. The img tag needs to be made in to a link, the link must have a Class="colorbox" and should point to the big image you want to display in the Colorbox.
Comment #2
capellicThe only problem is that Insert doesn't work with Media File Selector widget.
Comment #3
lsolesen CreditAttribution: lsolesen commentedMaybe you should try colorbox_media module then?