title: CKEditor insert HTML into textarea
body: <p>I'm trying to insert text into CKEditor using javascript. I have currently got this script:</p>
  
  <pre><code>function quote_&lt;?php echo $row['pid']; ?&gt;() {
          var stringContent = $(".content_&lt;?php echo $row['pid']; ?&gt;").html();
           $("#wysiwyg").val("[quote=&lt;?php echo $row['author']; ?&gt;]" + stringContent + "[/quote]");
           CKEDITOR.instances.wysiwyg.insertHtml('[quote=&lt;?php echo $row['author']; ?&gt;]' + stringContent + '[/quote]');
  }
  
  &lt;textarea name="message" style="width:100%" tabindex="3" rows="10" id="wysiwyg"&gt;
  &lt;/textarea&gt;
  </code></pre>
  
  <p>HTML is not being inserted into the instance 'wysiwyg', so I can't get this to work.</p>
  
  <p>Any ideas?</p>