[SOLVED] Why are my div's being stripped out in TinyMCE?
Posted: Sat Jul 10, 2010 3:22 am
I am using 1.8 and am accustomed to tinymce and smarty requiring some tweaks like {literal} to use code but I am having a problem now that is new to me. I don't really know this has anything to do with tinymce, just a guess.
I am trying to add code like this into the tinymce editor. I am turning the wysiwyg off.
That works fine. I save the page and it works just fine. BUT if I open that page again and save it, even with NO changes, tinymce changes it to this.
Why did it remove all of my div's? I tried using the literal tag but no go. Is this a setting in tinymce or something else? Above is a sample of the code which is actually much longer.
I am trying to add code like this into the tinymce editor. I am turning the wysiwyg off.
Code: Select all
<div class="Block">
<div class="Block-tl"></div>
<div class="Block-tr"><div></div></div>
<div class="Block-bl"><div></div></div>
<div class="Block-br"><div></div></div>
<div class="Block-tc"><div></div></div>
<div class="Block-bc"><div></div></div>
<div class="Block-cl"><div></div></div>
<div class="Block-cr"><div></div></div>
<div class="Block-cc"></div>
<div class="Block-body">
<div class="BlockHeader">
Code: Select all
<div class="Block">
<div class="BlockHeader">