title: how to send data with ajax using ckeditore?
body: <p>I have a form in django. it's 'composing mail' form. I send this form from view to my template and i apply ckeditor to chang the body style. i want this form to be posted by ajax. and when ckeditor is used, value of body field isn't send with request.POST. i use this line of code to use ckeditor:</p>
  
  <pre><code>CKEDITOR.replace('id_body'); 
  </code></pre>
  
  <p>(without using ckeditor, every thing works fine.)</p>
  
  <pre><code>&lt;form id="compose_form" action="compose/" method="post"&gt;
          {% csrf_token %}
          {{ form.non_field_errors }}
          &lt;div&gt;
              &lt;div class="form-field"&gt;
                  &lt;label for="id_recipient"&gt;{% trans 'recipient' %}:&lt;/label&gt;
                  {{ form.recipient }}               
                  {{ form.recipient.errors }}
              &lt;/div&gt;
              &lt;div class="form-field"&gt;
                  &lt;label for="id_subject"&gt;{% trans 'subject' %}:&lt;/label&gt;
                  {{ form.subject }}
                  {{ form.subject.errors }}
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-field"&gt;
              {{ form.body }}
              {{ form.body.errors }}
          &lt;/div&gt;        
              &lt;input id="messages-submit" type="submit" value=""Send"/&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>and i use this script to send form data via ajax:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          $(function() {
              $('#compose_form').submit(function() {
                  var temp = $("#compose_form").serialize();                
                  $.ajax({
                      type: "POST",
                      data: temp,
                      url: 'compose/',
                      success: function(data) {
                        // do s.th
                      }
                  });
                  return false;
              });
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>with this script, body value isn't send to request.POST(i mean it sends empty string in body field), when i add the below line to my script, it sends value of body field, but it isn't ajax any more. Can you please help me what to do?</p>