0
Welcome Guest! Login
0 items Join Now

TinyMCE and Lightbox

    • Robert Ateah's Avatar

    TinyMCE and Lightbox

    Posted 17 years 8 months ago
    • 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
      B) 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

      Cheers!
    • Last Edit: 17 years 8 months ago by .
  • Re: TinyMCE and Lightbox

    Posted 17 years 8 months ago
    • 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.

      http://www.kreacom.dk/mambotsfix.html

      Hope this helps,

      Mike
    • Robert Ateah's Avatar

    Re: TinyMCE and Lightbox

    Posted 17 years 8 months ago
    • Michael C VanKirk wrote:
      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.

      http://www.kreacom.dk/mambotsfix.html

      Hope this helps,

      Mike

      That is very helpful indeed friend! I bow in your general direction and wish you happiness, good health and fortune!

      Hooah, I'll mark this as solved!

      Cheers!

Time to create page: 0.046 seconds