I want to insert a text in p tag returning string tinyMCE through jquery
<p>I want to insert a text in last p tag which is returning from tinyMCE by the following code</p>

<pre><code>    var html = tinyMCE.activeEditor.getContent();
For this I am using the following jquery code

tinyMCE.init({
               mode : "textareas",
               theme : "advanced"
       });

       $(document).ready(function(){
   $("a[title='click_to_add']").click(function() {
               var html = tinyMCE.activeEditor.getContent();
               html = $("#p:last").text();
               alert(html);

               name = $(this).html();

               content = html+" "+name;

               tinyMCE.activeEditor.setContent(content);
               return false;
               });
       });
</code></pre>

<p>But it is not working.The HTML code is given below</p>

<pre><code>&lt;div style="float:left;"&gt;
       &lt;textarea id="mail_body" name="mail_body" rows="15" cols="80" style="width:575px;"&gt;&lt;/textarea&gt;

       &lt;/div&gt;
       &lt;div id="aaa"&gt;
           &lt;a href="#" id="news_user" title="click_to_add"&gt; &lt; name &gt; &lt;/a&gt;
   &lt;/div&gt;
</code></pre>

<p>Please give us a solution for this problem.</p>
