tags:

views:

45

answers:

1

Hello guys,

On a page I have, I need to move TinyMCE editors in the DOM tree once in a while. However, for some reason, the editor doesn't like it: it clears itself completely and becomes unusable. As far as I can see, this behavior is consistent between Safari 4 and Firefox 3.6, but not Internet Explorer 7/8. Here's an example.

It truly is pissing me off to do something that works in Internet Explorer but not with more appreciable browsers. Is there something I missed in the docs about never trying to move an editor in the DOM tree? Is there some kind of workaround?

+2  A: 

This is a browser bug/issue not a problem with TinyMCE. It's impossible to retain iframe contents in some browsers since once you remove the node from the dom the document/window unloads. I suggest first removing the editor instance then re-adding it instead of moving it in the DOM.

Spocke
That was what I've been doing initially, but I was having problems with `document_base_url` messing up my images on save. That was actually unrelated and I've fixed it (with `convert_urls` to `false`). But oh well, it works, and you deserve some rep.
zneak
Can't get a better answer than one from the main developer of TinyMCE! +1
alex