Ticket #1915: 1915.patch

File 1915.patch, 1.1 KB (added by Frederico Caldeira Knabben, 16 years ago)
  • editor/js/fckadobeair.js

     
    147147                // Save references for override reuse.
    148148                var _Original_FCKPanel_Window_OnFocus   = FCKPanel_Window_OnFocus ;
    149149                var _Original_FCKPanel_Window_OnBlur    = FCKPanel_Window_OnBlur ;
     150                var _Original_FCK_StartEditor                   = FCK.StartEditor ;
    150151
    151152                FCKPanel_Window_OnFocus = function( e, panel )
    152153                {
     
    162163                        // Delay the execution of the original function.
    163164                        panel._focusTimer = FCKTools.SetTimeout( _Original_FCKPanel_Window_OnBlur, 100, this, [ e, panel ] ) ;
    164165                }
     166               
     167                FCK.StartEditor = function()
     168                {
     169                        // Force pointing to the CSS files instead of using the inline CSS cached styles.
     170                        window.FCK_InternalCSS                  = FCKConfig.FullBasePath + 'css/fck_internal.css' ;
     171                        window.FCK_ShowTableBordersCSS  = FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css' ;
     172
     173                        _Original_FCK_StartEditor.apply( this, arguments ) ;
     174                }
    165175        })();
    166176}
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy