Page 1 of 1

Tiny MCE removing my empty divs!

Posted: Thu Aug 13, 2009 1:58 pm
by doodleflip
Ok, I;ve found a couple of other thread on this issue, like this one http://forum.cmsmadesimple.org/index.ph ... 398.0.html

Now can somebody please tell me where, in the TINY admin panel thing is this mythical tick box to say that I don't want it to format my XHTML?

Thanks

Re: Tiny MCE removing my empty divs!

Posted: Thu Aug 13, 2009 2:01 pm
by Ziggywigged
I use a html comment to avoid it being removed:

Code: Select all

<div><!-- leave --></div>

Re: Tiny MCE removing my empty divs!

Posted: Thu Aug 13, 2009 2:12 pm
by doodleflip
Genius.

Seems to have done the trick. I'd still quite like to know where to find this tick box though.

Thanks anyway!

Re: Tiny MCE removing my empty divs!

Posted: Thu Aug 13, 2009 2:20 pm
by Ziggywigged
It's under Extensions > TinyMCE WYSIWYG > Settings >
Apply source formatting to the output HTML:

Re: Tiny MCE removing my empty divs!

Posted: Thu Aug 13, 2009 2:27 pm
by doodleflip
I thought it would be that, but I already tried that one and it didn't seem to make a difference.

Ho-hum.