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

frjo’s picture

The 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.

capellic’s picture

The only problem is that Insert doesn't work with Media File Selector widget.

lsolesen’s picture

Status: Active » Fixed

Maybe you should try colorbox_media module then?

Status: Fixed » Closed (fixed)

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