Ext.ux.TinyMCE - TinyMCE form field (v0.8.2)

Features
* Use getValue() and setValue() to set HTML content.
* Resizes editor to the field size.
* Opens TinyMCE popups as Ext windows.
* Supports several instances of TinyMCE editor.
* Each instance could be configured individually.
* Overflow of TinyMCE toolbar gets hidden, so control can fit any size.

BTW, I found that if we create control at document ready event, then page doesn't work at all. It's possible that TinyMCE's script loading mechanism doesn't work well at this page state.

Thanks a lot!
To be honest, I've already figured it out by myself, took me quite a while though
Btw, if I try to instantiate a "standalone" TinyMCE field using applyTo (so it's bound to an existing textarea) then it doesn't work, the workaround is to replace afterRender with onRender and change all occurrences of this.getEl().child( "textarea" ).id; with this.getEl().id;.

buttons hack

here's a weird hack that replaces original tinMCE buttons with Ext.Button objects, it's really dirty since the buttons are added after the Window has been rendered (not to mention the use of eval) but it works... replace original open method with this: