I am working on a jQuery-based plugin as a drupal module that will tweak the comment form for a content type so that it appears inline on clicking certain content. When I try to clone() the comment form and append it to a hidden div so that I can access it later, the TinyMCE iframe does not come with the cloning, so I'm left with an empty iframe which I cannot enter text into.
I've tried to go into the iframe contentDocument and individually clone the child elements, but that hasn't worked. I've also tried to rearrange the module load order by altering the weight field in the drupal system table, so that my JS loads before the WYSIWYG module and TinyMCE library JS, but haven't been able to change the module load order either. I even used the Util drupal module to change modules weights with no luck. Any ideas on how to get a functioning TinyMCE iframe within a cloned div?
Thanks, Dakota