title: How to validate the Ckeditor using JQuery
body: <p>I am new in javascript and I am developing a project into CodeIgniter.
  Actually, I face a problem into  CKEditor validation.When I fill all field and Click on the submit button then one message show CkEditor is required field But when I again click on the submit button data successfully submitted.</p>
  
  <p>I don't know how to resolve this problem.I already search so many things But my Problem is same. I using this code But this is giving an error getData() is not Defined I don't know what is getdata and where I have to use this.</p>
  
  <pre><code>function CheckForm(theForm) 
  {
      textbox_data = CKEDITOR.instances.mytextbox.getData();
      if (textbox_data==='')
      {
          alert('please enter a comment');
      }
  }
  </code></pre>