Fill TinyMCE textarea using JQuery (mobile)
So I init my textarea and now its a TinyMCE box...great.

But I want the user to choose a some data and then fill in that textarea with that data (which is HTML btw) ... I was using this code:

     var text = file.rows.item(0).presentData;
        if (text != null) {
            text = text.replace(/\n/g, '<br />');
            $('#editcontent').val(text); 

#editcontent being a textarea... this worked fine until I added TinyMCE.  Now when I hit this page, the contents are not filled in.  

Any ideas? 
Fill TinyMCE textarea using JQuery (mobile)
===

So I init my textarea and now its a TinyMCE box...great.

But I want the user to choose a some data and then fill in that textarea with that data (which is HTML btw) ... I was using this code:

     var text = file.rows.item(0).presentData;
        if (text != null) {
            text = text.replace(/\n/g, '<br />');
            $('#editcontent').val(text); 

#editcontent being a textarea... this worked fine until I added TinyMCE.  Now when I hit this page, the contents are not filled in.  

Any ideas? 