title: load() a page that contains ckeditor in jquery
body: <p>i have a problem with load() a page that contains ckeditor.and the problem is that when im loading my page , after load the page does not contains ckeditor anymore.my code is here:</p>
  
  <p>i have a problem with load() a page that contains ckeditor.and the problem is that when im loading my page , after load the page does not contains ckeditor anymore.my code is here:</p>
  
  <pre><code>    $("#editpost").click(function(){
              $("#postbodycenter").load("editepost.php");
          });
  
  
  &lt;?php
  include 'php/auth.inc';
  include 'manage.php';
  if(!empty($_POST["title"]) &amp;&amp; !empty($_POST["txfpost"]))
  {
      connect();
      if(isset($_POST["select_page_name"]))
      {
  
          $p_name = mysql_real_escape_string($_POST['select_page_name']);
          $query = 'SELECT `id` FROM `pages` WHERE `page_name` ='.'"$p_id"'.'';
          $get_p_id = mysql_query($query) or die(mysql_error());  
          while ($result = mysql_fetch_array($get_p_id))
          {
              $p_id = $result[id];
              $query ="insert into post (page_id,header,category,date,author,body,more) values
                   ($p_id,'$_POST[title]','$_POST[txfcat]','$_POST[date]','admin','$_POST[txfpost]','$_POST[txfmore]')";
              mysql_query($query) or die(mysql_error());
  
          }   
      }
  
  
  }
  ?&gt;
       &lt;!DOCTYPE  html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf8"&gt;
  &lt;title&gt;new post&lt;/title&gt;
  
  &lt;link rel="stylesheet" href="cssadmin.css" type="text/css" /&gt;
  &lt;script type="text/javascript"  src="js/jquery-1.7.2.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="ckeditor/ckeditor.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function(){
  
      $("#btnsub").click(function(){
          var cat = $("#txfcat").val();
          var title = $("#title").val(); 
          var editor1 = $("#editor1").val();
          var editor2 = $("#editor").val();
          if(!(cat == "" || title == "" || editor1 =="" || editor2 == "")){
              alert("Fill all fields!");
          }else{
              $('#form1').submit();
              alert("done");
          }
  
      });
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body id ="body"&gt;
  &lt;center&gt;
                    &lt;form id="form1" name="form1" method="post" action="newpost.php"&gt;
                          &lt;table id = "tb_post"&gt;
                              &lt;tbody&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;cat&lt;/td&gt;
                                      &lt;td&gt;&lt;input type="text" name="txfcat" id="txfcat" size="130" /&gt;&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;title:&lt;/td&gt;
                                      &lt;td&gt;&lt;input type="text" name="title" id="title" size="130" /&gt;&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;refers to :&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;select name="select_page_name"&gt;
                                              &lt;option&gt;select the page&lt;/option&gt;
                                              &lt;option value="home"&gt;home&lt;/option&gt;
                                              &lt;?php pages();?&gt;                                        
                                          &lt;/select&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;&lt;input type = "hidden" name = "date" value="&lt;?php echo date("H:i:s d-m-Y")?&gt; "/&gt;&lt;/td&gt;
                                      &lt;td&gt;&lt;textarea class="ckeditor" cols="95" id="editor1" name="txfpost" rows="10"&gt;&lt;/textarea&gt;
                                      &lt;/td&gt;                   
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;more&lt;/td&gt;
                                          &lt;td&gt;&lt;textarea   class="ckeditor" cols="95" id="editor" name="txfmore" rows="10"&gt;&lt;/textarea&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;                   
                                  &lt;tr&gt;
                                          &lt;td&gt;&lt;/td&gt;   
                                      &lt;td&gt; &lt;button type="submit" name="btnsub" id="btnsub" value="update"&gt;send&lt;/button&gt; &lt;/td&gt;                 
                                  &lt;/tr&gt;
                              &lt;/tbody&gt;
                          &lt;/table&gt;
                  &lt;/form&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>