Hi, I am having trouble validating my site as rel="lightbox" is automatically added to an image tag when uploaded with IMCE. Automatic image handling is disabled. I have tried uninstalling and reinstalling module, searched the forums, but cannot find this issue reported anywhere. I suspect that it is a user (me) problem, but would really appreciate if someone could shed some light on this for me. Thanks in advance.

Comments

jzornig’s picture

I'm also suffering this. I have an image in a header block that is having the rel="lightbox" added to it and my site fails to validate.

How do I prevent this from happening?

jzornig’s picture

Seems to be happening in hook_filter()

In the lightbox2.module file in lightbox2_filter() function if I comment out the following line it fixes the problem.

        $text = preg_replace('/src="/', 'rel="lightbox" src="', $text);