Tiny MCE deletes all content and code on launch!!!
Permalink
I am using TinyMCE in a C5 5.4.1 install. All was working well and reliably but now when I put the page in edit mode and go to edit a Content block, the Tiny MCE editor is stripping ALL CONTENT and code from the block! Not in every block and not every time. Sometimes it displays the content once, but then won't display it when I go to edit a second content block. Even simple code is being deleted.
eg.
I think it started becoming unstable when I switched from the Custom to Advanced editor using the module in Sitewide settings.
There are some Content Blocks that had span classes in them with a javascript hover fade up/down effect over the images. ON LAUNCH OF THE TINY MCE EDITOR, the span class="hoverimage tags were stripped WHEN there was no text in between the tags > <span class="hoverimage"></span>. When there was text or characters like <span class="hoverimage"> </span>, it was retaining the code. That was not happening when I first created the Content block. I just resolved that by switching to a HTML block and re-inserting the span class <span class="hoverimage"></span>.
However on the top page of this dev sitehttp://66.147.242.198/~eirecojp/,... I have tried numerous times to edit the code pertaining to the Learn More buttons on the banners (code above) but each time, TinyMCE is stripping all the code and showing a blank window. The html code flashes in the top of the Tiny MCE editor window for an instant but then disappears. This was not happening when I was doing the initial edits as I successfully had the Content Blocks in place.
Would appreciate any insight into what may have made TinyMCE so unstable and what the solution is. I really want to use Content blocks instead of having to resort to a HTML block - especially when the HTML tags are standard.
eg.
<div> <a id="learnmore_left" target="_self" href="/~eirecojp/index.php?cID=113"/> </div>
I think it started becoming unstable when I switched from the Custom to Advanced editor using the module in Sitewide settings.
There are some Content Blocks that had span classes in them with a javascript hover fade up/down effect over the images. ON LAUNCH OF THE TINY MCE EDITOR, the span class="hoverimage tags were stripped WHEN there was no text in between the tags > <span class="hoverimage"></span>. When there was text or characters like <span class="hoverimage"> </span>, it was retaining the code. That was not happening when I first created the Content block. I just resolved that by switching to a HTML block and re-inserting the span class <span class="hoverimage"></span>.
However on the top page of this dev sitehttp://66.147.242.198/~eirecojp/,... I have tried numerous times to edit the code pertaining to the Learn More buttons on the banners (code above) but each time, TinyMCE is stripping all the code and showing a blank window. The html code flashes in the top of the Tiny MCE editor window for an instant but then disappears. This was not happening when I was doing the initial edits as I successfully had the Content Blocks in place.
Would appreciate any insight into what may have made TinyMCE so unstable and what the solution is. I really want to use Content blocks instead of having to resort to a HTML block - especially when the HTML tags are standard.