It happened with my D2 which caught me unawares. The hyperlink or a tag was not there on the image. After debugging I found the issue - went to Input Formats and Full HTML -> Configure. Turned off the HTML Corrector. It was causing to prematurely close the <a tags.
I was using this syntax for my lightbox image:
<a href="sites/default/files/railticket.jpg" title="Click to zoom/close" rel="lightbox"><img src="sites/default/files/railticket.jpg" width="200" height="329" style="border:5px solid gray;display:block;margin: auto auto;" alt="Rail ticket" /></a>
I was using this syntax for my lightbox image:
<a href="sites/default/files/railticket.jpg" title="Click to zoom/close" rel="lightbox"><img src="sites/default/files/railticket.jpg" width="200" height="329" style="border:5px solid gray;display:block;margin: auto auto;" alt="Rail ticket" /></a>
No comments:
Post a Comment