title: CKEditor + IE7+8 'null or not an object' error
body: <p>My problem is that I'm using the CKEditor 3.4 plugin for jQuery, and it's giving me an error in IE 7+8 when executing a $(selector).val(html) call on the editor:</p>
  
  <p>The error:
  'this.$.innerHTML' is null or not an object</p>
  
  <p>...which when run in the debugger, points to this line of code in the huge CKEditor.js:</p>
  
  <pre><code>getHtml:function(){var i=this.$.innerHTML;return c?i.replace(/&lt;\?[^&gt;]*&gt;/g,''):i;}
  </code></pre>
  
  <p>...which translates to this in the source:</p>
  
  <pre><code>getHtml : function()
  {
      var retval = this.$.innerHTML;
      // Strip &lt;?xml:namespace&gt; tags in IE. (#3341).
      return CKEDITOR.env.ie ? retval.replace( /&lt;\?[^&gt;]*&gt;/g, '' ) : retval;
  },
  </code></pre>
  
  <p>My offending code (stripped down, but still giving the error):</p>
  
  <pre><code>var editor_data = $("textarea#body").val();
  $("textarea#body").val(editor_data);
  </code></pre>
  
  <p>... and the textarea code for posterity:</p>
  
  <pre><code>&lt;textarea name="body" rows="15" cols="50" class="wysiwyg" id="body"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>I've tried reproducing in jsFiddle in IE8, but the strange thing is that it works as intended there.  I'd love to also provide a working sample but I unfortunately cannot for reasons outside my control.  </p>
  
  <p>I've also tried this fix, and it cleared up the error issue, but after that setData did not work as intended and just overwrote the editor contents with nothing.  I'll admit this problem+fix is a bit over my head...: <a href="http://dev.ckeditor.com/ticket/4566" rel="noreferrer">http://dev.ckeditor.com/ticket/4566</a></p>
  
  <p>(Sorry, long post :S) I've also tried to use the direct JavaScript API into CKEditor (abandoning the jQuery integration) and it threw the same error.</p>
  
  <p>Anyone have anything they'd like me to try to fix this issue, or have any hunches of what it might be?  It would be much appreciated!</p>