title: CKEditor InnerHTML error
body: <p>I have two CKeditor fields that are a part of the form. I have some action buttons on the page, so whenever I click either 'clear' or 'cancel' this function is fired along with other stuff:</p>
  
  <pre><code>    CKEDITOR.instances['ed1'].updateElement();
      CKEDITOR.instances['ed1'].setData('');
      CKEDITOR.instances['ed2'].updateElement();
      CKEDITOR.instances['ed2'].setData('');
  </code></pre>
  
  <p>That way I am cleaning the contents of the CKEditor fields. The problem is that if I click 'cancel', then go back to the page and click "clear", Internet Explorer gives an "innerHTML is null or undefined" JS error. </p>
  
  <p>It works fine in other browsers and only happens if I perform the update twice in a row from different buttons. Is there a workaround for that?</p>
  
  <p>CKEditor initialization onReady:</p>
  
  <pre><code> CKEDITOR.replace('ed1', { htmlEncodeOutput: true, width:"700",toolbar: 'Basic'
  });
  
  CKEDITOR.replace('ed2', { htmlEncodeOutput: true, width:"700",toolbar: 'Basic'
  });
  </code></pre>
  
  <p>I probably should add that I use <code>.show()</code> and <code>.hide()</code> whenever I use cancel button to hide the form and show other stuff. There's no page reload.</p>