title: CKEditor with json not passing content
body: <p>I am trying to submit a form without leaving the page using json.</p>
  
  <p>However, the method below ignores the data I have entered into the CKEditor.</p>
  
  <p>Any ideas <em>(and feel free to correct my terminology)</em>?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  $(document).ready( function() {
      $("#addStory input[type=submit]").click(function(e) {
          e.preventDefault();
          $.post('_posteddata.php', $("#addStory").serialize(), function(result) {
              alert(result.adminList);
          }, "json");
      });
  });
  
  &lt;/script&gt;
  
  &lt;form name="addStory" action="" method="post" id="addStory"&gt;
      &lt;label for="story_story"&gt;Story: &lt;/label&gt;&lt;textarea id="story_story" name="story_story"&gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;/textarea&gt;
  
      &lt;?php
      // Include the CKEditor class.
      include("ckeditor/ckeditor.php");
  
      // Create a class instance.
      $CKEditor = new CKEditor();
  
      $CKEditor-&gt;basePath = '/ckeditor/'
  
      $CKEditor-&gt;replace("story_story");
  
      ?&gt;
  
      &lt;input type="submit" value="Submit" /&gt;
  
  
  &lt;/form&gt;
  </code></pre>
  
  <p>_posteddata.php:</p>
  
  <pre><code>include 'connection.php';
  
  function check_input($value, $quoteIt)
    {
        // Stripslashes
        if (get_magic_quotes_gpc())
        {
            $value = stripslashes($value);
        }
        // Quote if not a number
        if (is_null($value) || $value=="") {
           $value = 'NULL';
        } else if (!is_numeric($value) &amp;&amp; $quoteIt == 1) {
           $value = "'" . mysql_real_escape_string($value) . "'";
        }
  
        return $value;
    }
  
  // CKEDITOR STUFF FOR STORY_STORY
  if (isset($_POST)) {
      $postArray = &amp;$_POST;
  }
  
  foreach ( $postArray as $sForm =&gt; $value )
  {
  
  
      if($sForm == "story_story") {
          $story_story = check_input($value, 1);  
      }
  }
  
  $query = "INSERT INTO story_table (story) VALUES ($story_story)";
  
  mysql_query($query) or die(mysql_error() . $query); 
  
  $return = array();
  $return['adminList'] = "New story added with ID: " . mysql_insert_id();
  header('application/json');
  echo json_encode($return);
  
  mysql_close();
  </code></pre>