Lightbox2 has the ability to automatically add an image lightbox effect to any image with certain classes attached. Your Image Caption Filter removes all classes in its operation. It would be a GREAT benefit to those of us who use both modules if, instead of stripping the classes altogether from the image, you substituted a different class into the image so we could still use classes in the captioned image.

As an example, maybe, instead of stripping the "image-right" class from the image, if you just changed it to "image-right-capped" for us...

Please give your thoughts on this. It would be a great help. Without an image class, I am unable to style captioned images very well. But if the class were just modified, then your module would still work, and other modules (like Lightbox) could work in addition. (as well as people's styling of images)

Comments

Geijutsuka’s picture

I would love to see this functionality as well! It's ridiculous how much time and energy I've spent having to hard code in all the images and their divs so they might simply have an inline style, a caption and a Lightbox display. I have been scanning through modules for months to make this process simple for an end user, and no one seems to be able to offer a solution.
I don't know why, but this area of functionality seems to be a black hole in Drupaldom; I'd love to write a module that fills in this void, but I don't know enough about programing to do it. :(

daltro’s picture

I am using lightbox2 together with caption filter module. It works great by adding a custom class to images on lightbox2 config page.

gregarios’s picture

I am using lightbox2 together with caption filter module. It works great by adding a custom class to images on lightbox2 config page.

Yes, that could work if you only want the same classes for all your images. If you want two or three different ones to allow you to send them floating left, or right, or not at all, then it doesn't.

Jim Bacon’s picture

So, finally, because I, too, wish to use lightbox (and to italicise parts of captions and variously float right, left and more) I have rejected this module altogether and am using the simple method outlined at http://tinymce.moxiecode.com/forum/viewtopic.php?pid=51554#p51554

The compromise that I have made is that if I want the caption to be narrower than the picture I have to manually insert line breaks (shift+enter in TinyMCE) to wrap it. This also means enabling <br> tags in the input format and preventing TinyMCE from removing them in the cleanup options. However, since this actually is WYSIWYG, unlike the use of this module, its no big deal.