title: trigger keyup event on a tinymce window
body: <p>I have a webpage/form with multiple tinymce instances and setup to respond with count of words/characters. everything works fine but could not get the display of word/character count on page load with initial content. here is my setup portion in tinymce setup.</p>
  
  <pre><code>setup: function(ed) {
      var text = ''; 
      var wordcount = false;
      ed.onKeyUp.add(function(ed, e) {
          var contents = new Object();
  
          for(i=0; i &lt; tinyMCE.editors.length; i++){
             if (tinyMCE.editors[i].getContent())
                 contents[i] = tinyMCE.editors[i].getContent();
             text = contents[i].replace(/(&lt;([^&gt;]+)&gt;)/g,'').replace(/\s+/g,' ');
             text = $.trim(text);
             $('#' + tinyMCE.editors[i].id + '_path_row').text(text.split(' ').length + ' words, ' + text.length + ' characters.');
          }
      }
  }
  </code></pre>
  
  <p>Now the part i am struggling is how to trigger key up when the page is displayed with initial content so that it displays word/character count.</p>
  
  <p>I tried $('#' + tinyMCE.editor(0).id + '_ifr').keyup();  and $('#textarea1').keyup(); but no use.</p>
  
  <p>Can some one help me to get it right?</p>