title: Can't post twice from the same AJAX TinyMCE textarea
body: <p>I've a list of elements editable via a simple AJAX/jQuery edit button, which works great. But when I try editing the same field a second time it doesn't want to play ball.</p>
  
  <ol>
  <li><strong>EDIT</strong> - AJAX returns a tinyMCE textarea containing content from MySQL</li>
  <li><strong>SAVE</strong> - AJAX posts tinyMCE contents to MySQL and displays posted content</li>
  <li><strong>EDIT (again)</strong> - Returns the same tinyMCE textarea and content as usual</li>
  <li><strong>SAVE (again)</strong> - The second time save is attempted, returns error: <em>g.win.document is null</em></li>
  </ol>
  
  <p><em>Code snippets</em></p>
  
  <pre><code>var content = tinyMCE.get('content').getContent(); //get tinyMCE content
  $("#edititem").load("editItem.php", {content: content}); //jQuery post
  </code></pre>
  
  <hr>
  
  <p><em>Solution</em> - this is how I got it working:</p>
  
  <p><strong>EDIT</strong> - when editing, add the tinyMCE control to the textarea</p>
  
  <pre><code>tinyMCE.execCommand("mceAddControl",true,'content');
  </code></pre>
  
  <p><strong>SAVE</strong> - when saving, remove the control for next time</p>
  
  <pre><code>tinyMCE.execCommand('mceRemoveControl',false,'content');
  </code></pre>