Index: _whatsnew.html
===================================================================
--- _whatsnew.html (revision 2018)
+++ _whatsnew.html (working copy)
@@ -46,6 +46,9 @@
[#2215] Following
the above new feature, the ReplaceTextarea method will now copy the textarea.tabIndex
value if available.
+ [#2043] The debug
+ script is not anymore part of the compressed files. If FCKeditor native debugging
+ features (FCKDebug) is required, the _source folder must be present in your installation.
Index: editor/_source/internals/fckdebug.js
===================================================================
--- editor/_source/internals/fckdebug.js (revision 2017)
+++ editor/_source/internals/fckdebug.js (working copy)
@@ -21,36 +21,40 @@
* Debug window control and operations.
*/
-var FCKDebug = new Object() ;
+// Public function defined here must be declared in fckdebug_empty.js.
-FCKDebug._GetWindow = function()
+var FCKDebug =
{
- if ( !this.DebugWindow || this.DebugWindow.closed )
- this.DebugWindow = window.open( FCKConfig.BasePath + 'fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=yes,resizable=yes,location=no,toolbar=no,width=600,height=500', true ) ;
+ Output : function( message, color, noParse )
+ {
+ if ( ! FCKConfig.Debug )
+ return ;
- return this.DebugWindow ;
-}
+ try
+ {
+ this._GetWindow().Output( message, color ) ;
+ }
+ catch ( e ) {} // Ignore errors
+ },
-FCKDebug.Output = function( message, color, noParse )
-{
- if ( ! FCKConfig.Debug )
- return ;
-
- try
+ OutputObject : function( anyObject, color )
{
- this._GetWindow().Output( message, color ) ;
- }
- catch ( e ) {} // Ignore errors
-}
+ if ( !this.DebugWindow || this.DebugWindow.closed )
+ if ( ! FCKConfig.Debug )
+ return ;
-FCKDebug.OutputObject = function( anyObject, color )
-{
- if ( ! FCKConfig.Debug )
- return ;
+ try
+ {
+ this._GetWindow().OutputObject( anyObject, color ) ;
+ }
+ catch ( e ) {} // Ignore errors
+ },
- try
+ _GetWindow : function()
{
- this._GetWindow().OutputObject( anyObject, color ) ;
+ if ( !this.DebugWindow || this.DebugWindow.closed )
+ this.DebugWindow = window.open( FCKConfig.BasePath + 'fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=yes,resizable=yes,location=no,toolbar=no,width=600,height=500', true ) ;
+
+ return this.DebugWindow ;
}
- catch ( e ) {} // Ignore errors
-}
+} ;
\ No newline at end of file
Index: editor/_source/internals/fckdebug_empty.js
===================================================================
--- editor/_source/internals/fckdebug_empty.js (revision 0)
+++ editor/_source/internals/fckdebug_empty.js (revision 0)
@@ -0,0 +1,31 @@
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ * - GNU General Public License Version 2 or later (the "GPL")
+ * http://www.gnu.org/licenses/gpl.html
+ *
+ * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ * http://www.gnu.org/licenses/lgpl.html
+ *
+ * - Mozilla Public License Version 1.1 or later (the "MPL")
+ * http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Debug window control and operations (empty for the compressed files - #2043).
+ */
+
+var FCKDebug =
+{
+ Output : function()
+ {},
+
+ OutputObject : function()
+ {}
+} ;
\ No newline at end of file
Index: editor/fckeditor.html
===================================================================
--- editor/fckeditor.html (revision 2017)
+++ editor/fckeditor.html (working copy)
@@ -103,7 +103,7 @@
LoadScript( '_source/internals/fck_' + sSuffix + '.js' ) ;
LoadScript( '_source/internals/fckconfig.js' ) ;
-LoadScript( '_source/internals/fckdebug.js' ) ;
+LoadScript( '_source/internals/fckdebug_empty.js' ) ;
LoadScript( '_source/internals/fckdomtools.js' ) ;
LoadScript( '_source/internals/fcktools.js' ) ;
LoadScript( '_source/internals/fcktools_' + sSuffix + '.js' ) ;
@@ -237,6 +237,13 @@
FCKConfig_PreProcess() ;
+// Load the full debug script.
+if ( FCKConfig.Debug )
+ LoadScript( '_source/internals/fckdebug.js' ) ;
+
+
+