title: Wait rendering ace editor
body: <p>How can i wait rendering editor after  </p>
  
  <pre><code>editor = ace.edit("editorId");
  editor.setValue(myCode, pos);
  </code></pre>
  
  <p>Unfortunately, ace editor doesn't has 'onload' events.
  I'm trying to use 'change' event, but this event fires many times and last time it fires before rendering html.</p>
  
  <pre><code>editor.on('change', function changeListener() {              
      if(isCodeInserted) {
           //do something        
           editor.removeEventListener('change', changeListener);
      }
  });
  </code></pre>
  
  <p>Fiddle : <a href="http://jsfiddle.net/SdN2Y" rel="noreferrer">jsfiddle.net/SdN2Y</a></p>