Index: /FCKeditor/trunk/_whatsnew.html
===================================================================
--- /FCKeditor/trunk/_whatsnew.html	(revision 2068)
+++ /FCKeditor/trunk/_whatsnew.html	(revision 2069)
@@ -38,5 +38,7 @@
 		New Features and Improvements:</p>
 	<ul>
-		<li></li>
+		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2043">#2043</a>] The debug
+			script is not any more part of the compressed files. If FCKeditor native debugging
+			features (FCKDebug) are required, the _source folder must be present in your installation.</li>
 	</ul>
 	<p>
Index: /FCKeditor/trunk/editor/_source/internals/fckdebug.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fckdebug.js	(revision 2068)
+++ /FCKeditor/trunk/editor/_source/internals/fckdebug.js	(revision 2069)
@@ -22,35 +22,39 @@
  */
 
-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 ;
+	OutputObject : function( anyObject, color )
+	{
+		if ( !this.DebugWindow || this.DebugWindow.closed )
+		if ( ! FCKConfig.Debug )
+			return ;
 
-	try
+		try
+		{
+			this._GetWindow().OutputObject( anyObject, color ) ;
+		}
+		catch ( e ) {}	 // Ignore errors
+	},
+
+	_GetWindow : function()
 	{
-		this._GetWindow().Output( message, 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
-}
-
-FCKDebug.OutputObject = function( anyObject, color )
-{
-	if ( ! FCKConfig.Debug )
-		return ;
-
-	try
-	{
-		this._GetWindow().OutputObject( anyObject, color ) ;
-	}
-	catch ( e ) {}	 // Ignore errors
-}
+} ;
Index: /FCKeditor/trunk/editor/_source/internals/fckdebug_empty.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fckdebug_empty.js	(revision 2069)
+++ /FCKeditor/trunk/editor/_source/internals/fckdebug_empty.js	(revision 2069)
@@ -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()
+	{}
+} ;
Index: /FCKeditor/trunk/editor/fckeditor.html
===================================================================
--- /FCKeditor/trunk/editor/fckeditor.html	(revision 2068)
+++ /FCKeditor/trunk/editor/fckeditor.html	(revision 2069)
@@ -104,5 +104,5 @@
 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' ) ;
@@ -237,4 +237,11 @@
 
 FCKConfig_PreProcess() ;
+
+// Load the full debug script.
+if ( FCKConfig.Debug )
+	LoadScript( '_source/internals/fckdebug.js' ) ;
+
+	</script>
+	<script type="text/javascript">
 
 var FCK_InternalCSS			= FCKConfig.FullBasePath + 'css/fck_internal.css' ;					// @Packager.RemoveLine
Index: /FCKeditor/trunk/fckpackager.xml
===================================================================
--- /FCKeditor/trunk/fckpackager.xml	(revision 2068)
+++ /FCKeditor/trunk/fckpackager.xml	(revision 2069)
@@ -78,5 +78,5 @@
 		<File path="editor/_source/internals/fck_ie.js" />
 		<File path="editor/_source/internals/fckconfig.js" />
-		<File path="editor/_source/internals/fckdebug.js" />
+		<File path="editor/_source/internals/fckdebug_empty.js" />
 		<File path="editor/_source/internals/fckdomtools.js" />
 		<File path="editor/_source/internals/fcktools.js" />
@@ -174,5 +174,5 @@
 		<File path="editor/_source/internals/fck_gecko.js" />
 		<File path="editor/_source/internals/fckconfig.js" />
-		<File path="editor/_source/internals/fckdebug.js" />
+		<File path="editor/_source/internals/fckdebug_empty.js" />
 		<File path="editor/_source/internals/fckdomtools.js" />
 		<File path="editor/_source/internals/fcktools.js" />
