how to jquery onclick append text to end of TINYMCE textarea
<p>I'm trying to click a word in the page that will append a word at the end of a <code>&lt;textarea&gt;</code>. What I have works fine on normal textareas but I can't find the proper way to do this in TinyMce.</p>

<pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;  &lt;/script&gt;

&lt;Idea2&gt;Idea2&lt;/Idea2&gt;

&lt;script language="JavaScript" type="text/JavaScript"&gt;
$('Idea2').click(function() { 
$('#DiscussionX1').val($('#DiscussionX1').val()+'\n\r newCharter'); 

});
&lt;/script&gt;
</code></pre>

<p>I've been told this below would be something like what I need but, I don't know how to deploy it to my code.</p>

<pre><code>    $('.mceContentBody').tinymce().execCommand('mceInsertContent',false);
</code></pre>

<p>Thank you for your assistance.</p>
