Ticket #2043: 2043.patch

File 2043.patch, 2.1 KB (added by martinkou, 22 months ago)
  • editor/_source/internals/fckdebug.js

     
    2525 
    2626FCKDebug._GetWindow = function() 
    2727{ 
     28        // @Packager.Remove.Start 
    2829        if ( !this.DebugWindow || this.DebugWindow.closed ) 
    2930                this.DebugWindow = window.open( FCKConfig.BasePath + 'fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=yes,resizable=yes,location=no,toolbar=no,width=600,height=500', true ) ; 
    3031 
    3132        return this.DebugWindow ; 
     33        // @Packager.Remove.End 
    3234} 
    3335 
    3436FCKDebug.Output = function( message, color, noParse ) 
    3537{ 
     38        // @Packager.Remove.Start 
    3639        if ( ! FCKConfig.Debug ) 
    3740                return ; 
    3841 
     
    4144                this._GetWindow().Output( message, color ) ; 
    4245        } 
    4346        catch ( e ) {}   // Ignore errors 
     47        // @Packager.Remove.End 
    4448} 
    4549 
    4650FCKDebug.OutputObject = function( anyObject, color ) 
    4751{ 
     52        // @Packager.Remove.Start 
     53        if ( !this.DebugWindow || this.DebugWindow.closed ) 
    4854        if ( ! FCKConfig.Debug ) 
    4955                return ; 
    5056 
     
    5359                this._GetWindow().OutputObject( anyObject, color ) ; 
    5460        } 
    5561        catch ( e ) {}   // Ignore errors 
     62        // @Packager.Remove.End 
    5663} 
  • editor/fckeditor.html

     
    103103LoadScript( '_source/internals/fck_' + sSuffix + '.js' ) ; 
    104104LoadScript( '_source/internals/fckconfig.js' ) ; 
    105105 
    106 LoadScript( '_source/internals/fckdebug.js' ) ; 
    107106LoadScript( '_source/internals/fckdomtools.js' ) ; 
    108107LoadScript( '_source/internals/fcktools.js' ) ; 
    109108LoadScript( '_source/internals/fcktools_' + sSuffix + '.js' ) ; 
     
    189188 
    190189// Base configuration file. 
    191190LoadScript( '../fckconfig.js' ) ; 
    192  
    193191        </script> 
    194192        <script type="text/javascript"> 
     193// @Packager.Remove.Start 
     194// Load debug scripts if debug is enabled for development 
     195if ( FCKConfig.Debug ) 
     196        LoadScript( '_source/internals/fckdebug.js' ) ; 
     197// @Packager.Remove.End 
    195198 
    196199// Adobe AIR compatibility file. 
    197200if ( FCKBrowserInfo.IsAIR )