Page 1 of 1

The Case of the Disappearing Div Tag

Posted: Wed Feb 23, 2011 3:18 pm
by mtnmchgrl
I have the following coded into my "home" page (w/ the WYSIWYG editor OFF):

Code: Select all

<div id="slideshow">
</div>
<br />
<h4 style="text-align: center;">Please browse our online gallery of furniture and contact us to inquire about specific items you are seeking.<br /> We can help you with all your home furnishings needs!</h4>
If I go in as an editor w/ the WYSIWYG turned ON and make any kind of changes whatsoever to the text above, the slideshow disappears. I go into the code & the slideshow div is gone. So I have to keep going in and manually adding it back. Actually, the only way I can get it to show up again is manually add it back in the code w/ the WYSIWYG OFF, then I turn it ON, THEN hit submit. This seems to be the only way I can get it to reappear.

Any ideas why this is happening?

I'm not so much worried about it for me (the admin) but when I add user capabilities, that might mean them editing & deleting something. Is there anyway to remove user access from a single page?

THANKS! :)

Re: The Case of the Disappearing Div Tag

Posted: Wed Feb 23, 2011 4:19 pm
by Wishbone
Even though you turned off WYSIWYG, it's still filtering what it thinks is unnecessary. There was a recent topic on this: http://forum.cmsmadesimple.org/viewtopi ... 0&p=246356

All you have to do is put a comment in your div, and it won't disappear. <div id="slideshow"><!-- Comment --></div>

Re: The Case of the Disappearing Div Tag [SOLVED]

Posted: Tue Mar 01, 2011 2:07 am
by mtnmchgrl
That did the trick! Thanks so much, Wishbone! :)