Hi everyone,

just to let you know in case you were wondering that it is possible to use the lightbox module and imce/fckeditor quite simply.
On the fckeditor website, i have found that there's a patch allowing us to add the rel attribute (aka Link Relationship) to the fckeditor advanced tab.
You can simply put there the rel attribute you want (lightbox....) and everything works fine.
It is very useful for me cause I don't want my clients to have to get into some html coding when using this, and I also don't want to use evrytime the same lightbox effect.
Anyway, here is the link to the patch : http://dev.fckeditor.net/attachment/ticket/2627/fck-rel.patch

I hope it helps some of you

Regards

Comments

stella’s picture

Status: Active » Fixed

Added to the documentation page at http://drupal.org/node/252153 Thanks.

Cheers,
Stella

Status: Fixed » Closed (fixed)

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

iantresman’s picture

Alternatively, in Lightbox's Admin

  • Select the "Automatic image handling" tab
  • Click "Automatic handler for custom class images"
  • Set the drop-down to "Lightbox"
  • Enter in the "Custom image trigger classes", the class name: popup

Then in the FCKeditor, use IMCE to insert a thumbnail, and in the image properties:

  • Select the Advanced tab
  • In the "Stylesheet Classes" field, enter the class name: popup (must match that entered above)
  • Text entered into the Image Info tab, "Alternative Text" field, will appear as the Lightbox popup caption.

Finally, in the FCKeditor, select the image and:

  • Click the Insert/Edit link icon
  • Browse and select the full-size image

The Lightbox popup should work as expected.

And then the Image Caption module to add a caption to the tumbnail.

thaddeusmt’s picture

I hacked together a little "patch" for the new CKEditor so it allows for adding "rel" attributes to the image links, just like the FCKeditor patch:
http://www.chilipepperdesign.com/2010/01/08/adding-the-rel-and-title-att...

freiheit0’s picture

thanks iantresman, great solution.

summit’s picture

Hi,
Will this still work #3? And do you have to make your image clickable to get this working?
greetings, Martijn

iantresman’s picture

I haven't tried this for a while, but the last part of #3 "Finally, in the FCKeditor" adds a link to the thumbnail, in which the destination is the full-sized image.