how to set the value of textarea with toolbar using javascript?
<p>I'm trying (from my firefox extension) to set the value of a textarea with toolbar which placed when creating a blog before posting it like in blogger or live-journal.</p>

<p>In simple textarea I can get or set the textarea value by:</p>

<pre><code>var myTextArea = gBrowser.contentDocument.getElementsByTagName("textarea")[0];
alert(myTextArea.value); // alerts the old value
myTextArea.value = "this is the new value of the textarea"; 
</code></pre>

<p>where there of course was only one textarea.</p>

<p>The problem is in textarea with toolbar. 
I succeeded changing the value of the textarea i'm writing in right now even though it has toolbar, but in all other sites especially blog sites the element value is changed but the text in the page stays the same.</p>

<p>I thought maybe the textarea is CKEditor but I don't know it's name so I can't use:</p>

<pre><code>FCKeditorAPI.GetInstance('InstanceName').insertText("new value in textarea");
</code></pre>

<p>is the textarea in sites such as mentioned above is CKEditor? and more important - how do i set the it's value?</p>

<p>thanks!</p>
