Ticket #2043: 2043.patch
File 2043.patch, 2.1 KB (added by , 16 years ago) |
---|
-
editor/_source/internals/fckdebug.js
25 25 26 26 FCKDebug._GetWindow = function() 27 27 { 28 // @Packager.Remove.Start 28 29 if ( !this.DebugWindow || this.DebugWindow.closed ) 29 30 this.DebugWindow = window.open( FCKConfig.BasePath + 'fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=yes,resizable=yes,location=no,toolbar=no,width=600,height=500', true ) ; 30 31 31 32 return this.DebugWindow ; 33 // @Packager.Remove.End 32 34 } 33 35 34 36 FCKDebug.Output = function( message, color, noParse ) 35 37 { 38 // @Packager.Remove.Start 36 39 if ( ! FCKConfig.Debug ) 37 40 return ; 38 41 … … 41 44 this._GetWindow().Output( message, color ) ; 42 45 } 43 46 catch ( e ) {} // Ignore errors 47 // @Packager.Remove.End 44 48 } 45 49 46 50 FCKDebug.OutputObject = function( anyObject, color ) 47 51 { 52 // @Packager.Remove.Start 53 if ( !this.DebugWindow || this.DebugWindow.closed ) 48 54 if ( ! FCKConfig.Debug ) 49 55 return ; 50 56 … … 53 59 this._GetWindow().OutputObject( anyObject, color ) ; 54 60 } 55 61 catch ( e ) {} // Ignore errors 62 // @Packager.Remove.End 56 63 } -
editor/fckeditor.html
103 103 LoadScript( '_source/internals/fck_' + sSuffix + '.js' ) ; 104 104 LoadScript( '_source/internals/fckconfig.js' ) ; 105 105 106 LoadScript( '_source/internals/fckdebug.js' ) ;107 106 LoadScript( '_source/internals/fckdomtools.js' ) ; 108 107 LoadScript( '_source/internals/fcktools.js' ) ; 109 108 LoadScript( '_source/internals/fcktools_' + sSuffix + '.js' ) ; … … 189 188 190 189 // Base configuration file. 191 190 LoadScript( '../fckconfig.js' ) ; 192 193 191 </script> 194 192 <script type="text/javascript"> 193 // @Packager.Remove.Start 194 // Load debug scripts if debug is enabled for development 195 if ( FCKConfig.Debug ) 196 LoadScript( '_source/internals/fckdebug.js' ) ; 197 // @Packager.Remove.End 195 198 196 199 // Adobe AIR compatibility file. 197 200 if ( FCKBrowserInfo.IsAIR )