title: Wait for TinyMCE to load
body: <p>I have these two lines of code one after another.</p>
  
  <pre><code>tinymce.execCommand('mceAddControl',true,'email_body');
  tinyMCE.activeEditor.setContent(data.tplCustom.htmltemplate);
  </code></pre>
  
  <p>Second line tries to set content even before the tinymce is done . I think cause of that I am getting " tinyMCE.activeEditor is null" error.</p>
  
  <p>Is there any way to wait until its loaded ? Thanks</p>