title: How to re-initialize ckeditor after destroy without page reload
body: <p>How can i re initailize ckeditor (4) after destroying the instances so i dont have to reload the page.  Im destroying them to clean up the inline divs before saving (see my comments on why) the content to mysql via ajax</p>
  
  <p>HERE IS MY CODE:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
    &lt;title&gt;Massive inline editing &amp;mdash; CKEditor Sample&lt;/title&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="/ckeditor/ckeditor.js"&gt;&lt;/script&gt;
    &lt;script&gt;
      // The "instanceCreated" event is fired for every editor instance created.
      CKEDITOR.on('instanceCreated', function(event) {
        var editor = event.editor,
          element = editor.element;
      });
    &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;!-- START CONTAINER DIV --&gt;
    &lt;div id="container"&gt;
  
      &lt;div id="headerLeft" contenteditable="true"&gt;
        &lt;!-- START HEADERLEFT DIV --&gt;
        &lt;h2 id="sampleTitle"&gt;
          CKEditor&lt;br&gt; Goes Inline!
        &lt;/h2&gt;
        &lt;h3&gt;
          Lorem ipsum dolor sit amet dolor duis blandit vestibulum faucibus a, tortor.
        &lt;/h3&gt;
      &lt;/div&gt;
      &lt;!-- END headerLeft DIV --&gt;
  
      &lt;div id="headerRight" contenteditable="true"&gt;
        &lt;!-- START HEADERRIGHT DIV --&gt;
  
        &lt;p&gt;Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies.
        &lt;/p&gt;
        &lt;p&gt;Curabitur et ligula. Ut molestie a, ultricies porta urna. Vestibulum commodo volutpat a, convallis ac, laoreet enim. Phasellus fermentum in, dolor. Pellentesque facilisis. Nulla imperdiet sit amet magna. Vestibulum dapibus, mauris nec malesuada
          fames ac.
        &lt;/p&gt;
  
  
      &lt;/div&gt;
      &lt;!-- END headerRight DIV --&gt;
    &lt;/div&gt;
    &lt;!-- END CONTAINER DIV --&gt;
    &lt;div style="clear:both;"&gt;&lt;/div&gt;
  
    &lt;input type="button" id="clickME" value="Save Changes"&gt;
  
    &lt;script&gt;
      $("#clickME").click(function() {
  
        //START FOR STATEMENT 
        // Cleaning up the div's that contain contenteditable="true" because ckeditor is changing them form
        // &lt;div id="headerRight" contenteditable="true"&gt;  TO
        // &lt;div id="headerLeft" contenteditable="true" class="cke_editable cke_editable_inline cke_contents_ltr" tabindex="0" spellcheck="false" style="position: relative; " role="textbox" aria-label="Rich Text Editor, headerLeft" title="Rich Text Editor, headerLeft" aria-describedby="cke_53"&gt;
        // Without this for statement
  
        // IS THERE AN ALTERNATIVE TO PREVENT DESTROYING CKEDITOR INSTANCES????
  
        for (name in CKEDITOR.instances) {
          CKEDITOR.instances[name].destroy()
        }
        // END FOR STATEMENT
  
        // GET CONTENTS FROM CONTAINER DIV
        var htmlStr = $('#container').html();
  
        // CALL FUNCTION TO SAVE CONTENT FROM CONTAINER DIV VIA AJAX
        addHit(htmlStr);
  
  
        // HOW TO RE INITIALIZE CKEDITOR HERE SO CKEDITOR WORKS AGAIN?????
  
      });
  
      // START FUNCTION TO SAVE DATA VIA AJAX
      function addHit(data1) {
        $.ajax({
          type: "POST",
          url: "/save.php",
          data: "var1=" + data1,
          success: function(msg) {
            alert("Data Saved: " + msg); //Anything you want
          }
        });
      }
      // END FUNCTION TO SAVE DATA VIA AJAX
    &lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>