2 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
\r
3 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
\r
5 * == BEGIN LICENSE ==
\r
7 * Licensed under the terms of any of the following licenses at your
\r
10 * - GNU General Public License Version 2 or later (the "GPL")
\r
11 * http://www.gnu.org/licenses/gpl.html
\r
13 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
\r
14 * http://www.gnu.org/licenses/lgpl.html
\r
16 * - Mozilla Public License Version 1.1 or later (the "MPL")
\r
17 * http://www.mozilla.org/MPL/MPL-1.1.html
\r
21 * Debug window control and operations.
\r
24 // Public function defined here must be declared in fckdebug_empty.js.
\r
28 Output : function( message, color, noParse )
\r
30 if ( ! FCKConfig.Debug )
\r
35 this._GetWindow().Output( message, color, noParse ) ;
\r
37 catch ( e ) {} // Ignore errors
\r
40 OutputObject : function( anyObject, color )
\r
42 if ( ! FCKConfig.Debug )
\r
47 this._GetWindow().OutputObject( anyObject, color ) ;
\r
49 catch ( e ) {} // Ignore errors
\r
52 _GetWindow : function()
\r
54 if ( !this.DebugWindow || this.DebugWindow.closed )
\r
55 this.DebugWindow = window.open( FCKConfig.BasePath + 'fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=yes,resizable=yes,location=no,toolbar=no,width=600,height=500', true ) ;
\r
57 return this.DebugWindow ;
\r