title: CKEditor not working after Ajax call
body: <p>I'm using CKEditor as a wysiwyg editor. My page has some form elements on them which are loaded through an Ajax call. When i fill in all the data including the wysiwyg editor and then hit the Save button nothing is saved. The submitting is also done through an Ajax call.</p>
  
  <p>Nothing is saved because CKEditor isn't updating the original <code>textarea</code> properly. I found an answer that said to do the following <strong>before</strong> the submit:</p>
  
  <pre><code>for(var instanceName in CKEDITOR.instances) {
      console.log(instanceName);
      CKEDITOR.instances['element[1][content]'].updateElement();
  }
  </code></pre>
  
  <p>This is triggered everytime before i submit my form. But this code still doesn't update the real textarea with the content that the CKEditor has...</p>
  
  <p>Anyone any idea how i can solve this problem?</p>
  
  <p>I'm using the latest CKEditor <em>(3.6.5, released on 10 October 2012)</em>.</p>
  
  <h2>Edit</h2>
  
  <p>Just noticed through the console of Firefox that <code>updateElement()</code> is undefined when i run the following command:</p>
  
  <pre><code>CKEDITOR.instances['element[1][content]'].updateElement();
  </code></pre>
  
  <p>But when i run this, then it does return an object:</p>
  
  <pre><code>CKEDITOR.instances['element[1][content]'];
  </code></pre>