title: Tweak TinyMCE Window after opening
body: <p>I have this annoying thing that although is not a blocker-blocker, is very annoying. Let me explain.</p>
  
  <p>I have this code inside of a MCE plugin:</p>
  
  <pre><code>var theWindow = editor.windowManager.open({
    html: '&lt;iframe id="iframeID" src="iframeURL" frameborder="0"&gt;&lt;/iframe&gt;',
    buttons: [
      {
        text: 'Cancel',
        subtype: 'secondary'
  
      },
      {
        text: 'Submit',
        onclick: 'submit',
        subtype: 'primary mySubmitButton'
      }
    ],
  });
  
  $('#iframeID').on('load', function(){
    selectedSnippets.on('change', function(e){
      theWindow.statusbar.$el.find('.mySubmitButton .mce-txt').text(text);
    });
  });
  </code></pre>
  
  <p>(I avoided the plugin declaration and the code that will trigger the window opening for brevity)</p>
  
  <p>Ok, so this works, the window is opened, it does have a title, a footer and two buttons on this footer.</p>
  
  <p>My issue now is this: how do I update the text on the footer buttons? I mean I <em>could</em> simply do it with js. That works, but the problem is the buttons are positioned <code>absolute</code> and computed on first render:</p>
  
  <p><img src="https://i.imgur.com/V0zhkQB.jpg" alt=""></p>
  
  <p><img src="https://i.imgur.com/zkg6Un0.jpg" alt=""></p>
  
  <p>So, my question is: how the hell do I re-render those buttons? The documentation of TinyMCE doesn't really help (or I may not know what/where to look for).</p>
  
  <p>And as a subquestion: how to <em>disable</em> one button?</p>
  
  <p>Thanks!</p>