I am using
Lightbox
(latest version) on a Joomla site to display pics on a static content page and I found a problem.
You cannot use Lightbox and TinyMCE together - TinyMCE will strip the following (in blue text) and add the following (in red text):
Original code:
<a href="images/shadow2.jpg" rel="lightbox[woof]" title="Shadow - Press N for next pic, P for previous, press X to close"><img src="images/shadow2_sm.jpg"></a>
TinyMCE output code:
<a href="
www.mysite.com/images/shadow2.jpg" title="Shadow - Press N for next pic, P for previous, press X to close"><img src="
www.mysite.com/images/shadow2_sm.jpg" alt="" /></a>
The only solution that I can think of is to:
A) turn off the "Code Cleanup" option in TinyMCE - however this is not recommended according to the tooltip Not use TinyMCE when editing the Photos page <<< this is what I do but it is a bit of a pain in the posterior to have to disable. enable TinyMCE everytime
Any thought/ fixes?
Lightbox in action:
Linky Linky
Robert,
You can install this mambot (plugin). It is called HTML Fix and what it does is it makes your editor BEHAVE and it won't let it strip html away from links etc.
Robert,
You can install this mambot (plugin). It is called HTML Fix and what it does is it makes your editor BEHAVE and it won't let it strip html away from links etc.