title: TinyMCE execCommand return undefined
body: <p>I'm trying to remove tinyMCE from a specific textarea that I have created earlier but the following command kept on producing "undefined" error (checked using firebug console):</p>
  
  <pre><code>tinyMCE.execCommand('mceFocus', false, 'textarea-plainText');
  tinyMCE.execCommand('mceRemoveControl', false, 'textarea-plainText')
  </code></pre>
  
  <p>I have initialized the TinyMCE for that particular text area using jQuery:</p>
  
  <pre><code>$('textarea#textarea-plainText').tinymce({
                  script_url : '&lt;?php echo base_url(); ?&gt;/assets/js/tinymce/tinymce.min.js',
                  oninit: function() {
                              $("textarea#textarea-plainText").tinymce().setContent("");
                              $("textarea#textarea-plainText").tinymce().setContent(noteSecContent.html[0].notesec_content);
                          }
              });
  </code></pre>
  
  <p>I have also try to add tinyMCE using the following command but it also return undefined although I have a textarea with "textarea-plainText" ID:</p>
  
  <pre><code>$.getScript('&lt;?php echo base_url(); ?&gt;assets/js/tinymce/tinymce.min.js', function() {
              window.tinymce.dom.Event.domLoaded = true;
              tinyMCE.init({
                  mode: 'none'
              });
              tinyMCE.execCommand('mceAddControl', false, 'textarea-plainText');
          });
  </code></pre>
  
  <p>In short, I can only initialize either using the jquery method or exact method. But not using tinyMCE.execCommand. Somehow the "exeCommand" command just wont work.</p>
  
  <p>HTML for the textarea:</p>
  
  <pre><code>&lt;div id="plainTextModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="plainTextLabel" aria-hidden="true"&gt;
    &lt;div class="modal-body"&gt;
     &lt;textarea id='textarea-plainText'&gt;&lt;/textarea&gt;
    &lt;/div&gt;
    &lt;div class="modal-footer"&gt;
      &lt;button class="btn btn-danger" data-dismiss="modal" aria-hidden="true"&gt;Cancel&lt;/button&gt;
      &lt;a href="" id="confirm-delete-note-section" class="btn btn-primary"&gt;Save&lt;/a&gt;
      &lt;a href="" id="confirm-delete-note-section" class="btn btn-info"&gt;Save &amp;amp; Close&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It's a modal, so it is initially hidden until the modal is called.</p>
  
  <p>I'm using TinyMCE 4.0b1 by the way.</p>