title: How to destroy tinymce completely?
body: <p>I am working on something like this:</p>
  
  <p>On a webpage, there is an article wrapped in a DIV, an Edit button. When a user click on the Edit button, insert an textarea via javascript, load the html of the DIV into the textarea, load and initial tinymce. When the user click on the Save button, save and update the article via ajax, and destroy tinymce completely.</p>
  
  <p>The problem is that, I failed to destroy tinymce. Here is <a href="http://wiki.moxiecode.com/index.php/TinyMCE:API/tinymce.Editor/destroy" rel="noreferrer">the doc of the destroy method</a>.</p>
  
  <p>I am using the jQuery version of tinymce, the lastest V3.2.2</p>
  
  <p>Here is the sample code:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
          &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="../js/tinymce/jquery.tinymce.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              $(function() {
                  $('button.load').click(loadTinyMCE);
                  $('button.destory').click(destoryTinyMCE);
              });
  
              function loadTinyMCE() {
                  $('textarea').tinymce({
                      script_url : '../js/tinymce/tiny_mce.js'
                  });
              }
  
              function destoryTinyMCE() {
                  $('textarea').tinymce().destroy();
              }
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;textarea&gt;abc&lt;/textarea&gt;
          &lt;button type="button" class="load"&gt;Load TinyMCE&lt;/button&gt;
          &lt;button type="button" class="destory"&gt;Destory TinyMCE&lt;/button&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>