I'm using the tinyMCE editor in a site to edit content for multiple projects. Loading tinyMCE creates an iframe, which in itself works fine. In the site, instead of creating a tinyMCE instance for every project, I'm creating it once and then just moving it to the active project. I'm doing that like this:
$('.active_project').append($("#editor"); //#editor is a div that contains the tinyMCE editor and some other fields But when it is moved the head and body of the iframe are emptied, and obviously the editor no longer functions. I'm not sure if it's a bug, or I'm doing something wrong, or if there is a better to way to move DOM fragments around. Any help is appreciated. Thanks