title: using CKEditor with jQuery validation plugin not working
body: <p>I'm using CKeditor and the jQuery validation plugin from basistance. My textarea (with the CKEditor on it) is being validated by jQuery, but that only works after the second click on my submit button.</p>
  
  <p>In short:
  the first time I submit the form when data is entered in the CKEditor, it says "field is empty". The second time it says it's ok and the form is being submitted.</p>
  
  <p>I read a solution for this: </p>
  
  <p><em>"you could work around this problem by calling CKEDITOR.editor::updateElement right before every validation routine."</em> </p>
  
  <p>I cannot find how to implement it though:</p>
  
  <pre><code>$(document).ready(function(){
      CKEDITOR.replace( 'prod_description',
      {
          toolbar: 'MyToolbar'
      }
      );
  
      $("#btnOk").click(function(){
          CKEDITOR.instances.editor1.updateElement();
          alert('click');
      });
  });
  </code></pre>
  
  <p>This always gives me the error: "CKEDITOR.instances.editor1 is undefined"</p>
  
  <p>Any ideas on how to solve this. Documentation from CKEditor is here:
  <a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#updateElement" rel="nofollow noreferrer">http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#updateElement</a></p>