Tiny MCE removing my empty divs!

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
doodleflip
Forum Members
Forum Members
Posts: 16
Joined: Tue Aug 11, 2009 3:26 pm

Tiny MCE removing my empty divs!

Post 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
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

Re: Tiny MCE removing my empty divs!

Post by Ziggywigged »

I use a html comment to avoid it being removed:

Code: Select all

<div><!-- leave --></div>
Take a penny, leave a penny.
doodleflip
Forum Members
Forum Members
Posts: 16
Joined: Tue Aug 11, 2009 3:26 pm

Re: Tiny MCE removing my empty divs!

Post 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!
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

Re: Tiny MCE removing my empty divs!

Post by Ziggywigged »

It's under Extensions > TinyMCE WYSIWYG > Settings >
Apply source formatting to the output HTML:
Take a penny, leave a penny.
doodleflip
Forum Members
Forum Members
Posts: 16
Joined: Tue Aug 11, 2009 3:26 pm

Re: Tiny MCE removing my empty divs!

Post 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.
Post Reply

Return to “Layout and Design (CSS & HTML)”