title: Update textarea with CKEditor + jQuery Validation
body: <p>I'm trying to validate a form which contains a textarea supported by CKEditor.
  But now, it simply doesn't show any errors at all, and doesn't submit the code.</p>
  
  <p>I've read all the answers I could related to this topic but I couldn't get my code working.</p>
  
  <p>This is what I've got so far:</p>
  
  <pre><code>if(jQuery().validate) {
      $("#submit_button").click(function(e){
          e.preventDefault();
          CKEDITOR.instances.editor1.updateElement();
  
          $(" #content_form ").validate({
              ignore: "input:hidden:not(input:hidden.required),input:hidden:not(input:hidden.editor1)",
              errorPlacement: function(error, element) {
                  if (element.attr("name") == "editor1")
                  {
                      error.insertBefore("#editor1");
                  }
                  else
                  {
                      error.insertAfter(element);
                  }
              },
              rules: {
                  title: {
                      required: true,
                      minlength: 5
                  },
                  editor1: {
                      required: true,
                      minlength: 10
                  },
                  imglink: {
                      url:true
                  },
              },
              messages: {
                  title: "The title field is required.",
                  editor1: "The content field is required.",
                  imglink: "You must provide a valid URL."
              }
          });
      });
  }
  </code></pre>
  
  <p>I would be very grateful if any of you could help figure this out.</p>
  
  <p>Thanks in advance.</p>