| 1 |
/* |
| 2 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
| 3 |
* Copyright (C) 2003-2009 Frederico Caldeira Knabben |
| 4 |
* |
| 5 |
* == BEGIN LICENSE == |
| 6 |
* |
| 7 |
* Licensed under the terms of any of the following licenses at your |
| 8 |
* choice: |
| 9 |
* |
| 10 |
* - GNU General Public License Version 2 or later (the "GPL") |
| 11 |
* http://www.gnu.org/licenses/gpl.html |
| 12 |
* |
| 13 |
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
| 14 |
* http://www.gnu.org/licenses/lgpl.html |
| 15 |
* |
| 16 |
* - Mozilla Public License Version 1.1 or later (the "MPL") |
| 17 |
* http://www.mozilla.org/MPL/MPL-1.1.html |
| 18 |
* |
| 19 |
* == END LICENSE == |
| 20 |
* |
| 21 |
* Debug window control and operations. |
| 22 |
*/ |
| 23 |
|
| 24 |
// Public function defined here must be declared in fckdebug_empty.js. |
| 25 |
|
| 26 |
var FCKDebug = |
| 27 |
{ |
| 28 |
Output : function( message, color, noParse ) |
| 29 |
{ |
| 30 |
if ( ! FCKConfig.Debug ) |
| 31 |
return ; |
| 32 |
|
| 33 |
try |
| 34 |
{ |
| 35 |
this._GetWindow().Output( message, color, noParse ) ; |
| 36 |
} |
| 37 |
catch ( e ) {} // Ignore errors |
| 38 |
}, |
| 39 |
|
| 40 |
OutputObject : function( anyObject, color ) |
| 41 |
{ |
| 42 |
if ( ! FCKConfig.Debug ) |
| 43 |
return ; |
| 44 |
|
| 45 |
try |
| 46 |
{ |
| 47 |
this._GetWindow().OutputObject( anyObject, color ) ; |
| 48 |
} |
| 49 |
catch ( e ) {} // Ignore errors |
| 50 |
}, |
| 51 |
|
| 52 |
_GetWindow : function() |
| 53 |
{ |
| 54 |
if ( !this.DebugWindow || this.DebugWindow.closed ) |
| 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 ) ; |
| 56 |
|
| 57 |
return this.DebugWindow ; |
| 58 |
} |
| 59 |
} ; |
| 60 |
|