title: TinyMCE: Get orignial textarea reference within initialization
body: <h1>Problem</h1>
  
  <p>Width of the <code>&lt;textarea&gt;</code> is defined by CSS class, for ex.: <code>wMax</code> or <code>wDefault</code>. In first case it is 100%, in the second, lets say 200px. By default TinyMCE converts everything to fixed width in pixels. Ofcourse I can set <code>width:100%</code> inside <code>tinyMCE.init()</code>, but that will not cover textarea's with wDefault / fixed with. </p>
  
  <h1>What I need</h1>
  
  <p>I need TinyMCE width to behave the same as original, % or px depending on it's CSS class.</p>
  
  <p>If I could find a reference to the original textarea element within <code>tinyMCE.init()</code> procedure, then I could read CSS class from it, and set <code>width: (textarea.hasClass('wMax') ? '100%' : null)</code> or something like that</p>
  
  <p>I am aware of the <a href="http://www.tinymce.com/wiki.php/API3%3amethod.tinymce.Editor.getElement" rel="nofollow">getElement()</a> function, which gets me exactly that textarea. But where do I run it from? tinyMCE.activeEditor is <strong>null</strong> within <code>init()</code>. </p>
  
  <p>I'm currently still using TinyMCE 3, but it would be nice if you could answer this also for 4.x version, if there is any difference ofcourse...</p>