static/admin/TinyMCETextArea.js
function (dw, dh, id) {
        var w = Ext.getCmp(id);
        if (!w) {
            return;
        }
        
        // TinyMCE window manager opens the windows in two steps
        //
        // 1. displaying and loading iframe
        // 2. Adjusting the window size to the iframe
        //
        // It has an unbeatufiul eefect of resizing by
        // opening. Thus, we first open the window in the
        // invisible area, and center it only when resize is done.

        var size = w.getSize();
        w.setSize(size.width + dw, size.height + dh);
        w.center();

        var tinypopupIframe = w.getComponent('tiny_popup_iframe');
        if (!tinypopupIframe) { return; }

        var doc = tinypopupIframe.getEl().dom.contentDocument;
        if (!doc) { return; }

        // We do not focus in the standard way. It does not work under IE.
        // The standard focusing occurs too early when using ExtJS windows for the popups.
        // We do focusing here after resize.

        tinymce.each(doc.forms, function (g) {
            tinymce.each(g.elements, function (f) {
                if (tinymce.DOM.hasClass(f, "mceFocus") && !f.disabled) {
                    f.focus();
                    return false;
                }
            });
        });

        // This fixes the bug under IE - after moving the iframe is not visible.
        // But, we have to add this event after a delay, otherwise it removes the
        // focus from the field, what is set above.

        setTimeout(function () {
            w.on('move', function (win, x, y, opts) {
                tinypopupIframe.getEl().focus();
            }, w);
        }, 1500);
    }
function (dw, dh, id) {
        var w = Ext.getCmp(id);
        if (!w) {
            return;
        }
        
        // TinyMCE window manager opens the windows in two steps
        //
        // 1. displaying and loading iframe
        // 2. Adjusting the window size to the iframe
        //
        // It has an unbeatufiul eefect of resizing by
        // opening. Thus, we first open the window in the
        // invisible area, and center it only when resize is done.

        var size = w.getSize();
        w.setSize(size.width + dw, size.height + dh);
        w.center();

        var tinypopupIframe = w.getComponent('tiny_popup_iframe');
        if (!tinypopupIframe) { return; }

        var doc = tinypopupIframe.getEl().dom.contentDocument;
        if (!doc) { return; }

        // We do not focus in the standard way. It does not work under IE.
        // The standard focusing occurs too early when using ExtJS windows for the popups.
        // We do focusing here after resize.

        tinymce.each(doc.forms, function (g) {
            tinymce.each(g.elements, function (f) {
                if (tinymce.DOM.hasClass(f, "mceFocus") && !f.disabled) {
                    f.focus();
                    return false;
                }
            });
        });

        // This fixes the bug under IE - after moving the iframe is not visible.
        // But, we have to add this event after a delay, otherwise it removes the
        // focus from the field, what is set above.

        setTimeout(function () {
            w.on('move', function (win, x, y, opts) {
                tinypopupIframe.getEl().focus();
            }, w);
        }, 1500);
    }
function ( dw , dh , id ) { var w = Ext . getCmp ( id ) ; if ( ! w ) { return ; } // TinyMCE window manager opens the windows in two steps
 //
 // 1. displaying and loading iframe
 // 2. Adjusting the window size to the iframe
 //
 // It has an unbeatufiul eefect of resizing by
 // opening. Thus, we first open the window in the
 // invisible area, and center it only when resize is done.
 var size = w . getSize ( ) ; w . setSize ( size . width + dw , size . height + dh ) ; w . center ( ) ; var tinypopupIframe = w . getComponent ( 'tiny_popup_iframe' ) ; if ( ! tinypopupIframe ) { return ; } var doc = tinypopupIframe . getEl ( ) . dom . contentDocument ; if ( ! doc ) { return ; } // We do not focus in the standard way. It does not work under IE.
 // The standard focusing occurs too early when using ExtJS windows for the popups.
 // We do focusing here after resize.
 tinymce . each ( doc . forms , function ( g ) { tinymce . each ( g . elements , function ( f ) { if ( tinymce . DOM . hasClass ( f , "mceFocus" ) && ! f . disabled ) { f . focus ( ) ; return false ; } } ) ; } ) ; // This fixes the bug under IE - after moving the iframe is not visible.
 // But, we have to add this event after a delay, otherwise it removes the
 // focus from the field, what is set above.
 setTimeout ( function ( ) { w . on ( 'move' , function ( win , x , y , opts ) { tinypopupIframe . getEl ( ) . focus ( ) ; } , w ) ; } , 1500 ) ; }
-----------------------------------------------------------------
-----------------------------------------------------------------