Update of /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25920/thywidgets/external/fckeditor/editor/_source/classes Modified Files: fckcontextmenugroup.js fckcontextmenuitem.js fckcontextmenuseparator.js fckevents.js fckpanel_gecko.js fckpanel_ie.js fckplugin.js fckspecialcombo.js fckstyledef.js fckstyledef_gecko.js fckstyledef_ie.js fckstylesloader.js fcktoolbar.js fcktoolbarbutton.js fcktoolbarcombo.js fcktoolbarfontformatcombo.js fcktoolbarfontscombo.js fcktoolbarfontsizecombo.js fcktoolbarpanelbutton.js fcktoolbarspecialcombo.js fcktoolbarstylecombo.js Log Message: Commiting file additions and modification from SVN revision 1841 to 1842... Changes made by vinicius on 2005-08-23 15:49:13 +0200 (Tue, 23 Aug 2005) corresponding to SVN revision 1842 with message: License file included in thyapi Index: fckplugin.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckplugin.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckplugin.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckplugin.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,17 **** * FCKPlugin Class: Represents a single plugin. * ! * Version: 2.0 RC2 ! * Modified: 2004-11-22 11:12:10 * * File Authors: --- 12,17 ---- * FCKPlugin Class: Represents a single plugin. * ! * Version: 2.0 RC3 ! * Modified: 2005-01-19 17:27:15 * * File Authors: *************** *** 23,32 **** FCKConfig.PluginsPath += '/' ; ! var FCKPlugin = function( name, availableLangs ) { this.Name = name ; ! this.Path = FCKConfig.PluginsPath + name + '/' ; ! if ( availableLangs.length == 0 ) this.AvailableLangs = new Array() ; else --- 23,33 ---- FCKConfig.PluginsPath += '/' ; ! var FCKPlugin = function( name, availableLangs, basePath ) { this.Name = name ; ! this.BasePath = basePath ? basePath : FCKConfig.PluginsPath ; ! this.Path = this.BasePath + name + '/' ; ! if ( !availableLangs || availableLangs.length == 0 ) this.AvailableLangs = new Array() ; else Index: fckstyledef_ie.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckstyledef_ie.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckstyledef_ie.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckstyledef_ie.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,16 **** * FCKStyleDef Class: represents a single stylke definition. (IE specific) * ! * Version: 2.0 RC2 * Modified: 2004-11-22 11:09:44 * --- 12,16 ---- * FCKStyleDef Class: represents a single stylke definition. (IE specific) * ! * Version: 2.0 RC3 * Modified: 2004-11-22 11:09:44 * Index: fckevents.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckevents.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckevents.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckevents.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,17 **** * FCKEvents Class: used to handle events is a advanced way. * ! * Version: 2.0 RC2 ! * Modified: 2004-12-04 16:52:36 * * File Authors: --- 12,17 ---- * FCKEvents Class: used to handle events is a advanced way. * ! * Version: 2.0 RC3 ! * Modified: 2005-03-02 09:19:48 * * File Authors: *************** *** 25,29 **** } ! FCKEvents.prototype.AttachEvent = function( eventName, functionPointer, params ) { if ( ! this.RegisteredEvents[ eventName ] ) this.RegisteredEvents[ eventName ] = new Array() ; --- 25,29 ---- } ! FCKEvents.prototype.AttachEvent = function( eventName, functionPointer ) { if ( ! this.RegisteredEvents[ eventName ] ) this.RegisteredEvents[ eventName ] = new Array() ; *************** *** 36,54 **** var bReturnValue = true ; - FCKDebug.Output( 'Firing event: ' + eventName, 'Fuchsia' ) ; - var oCalls = this.RegisteredEvents[ eventName ] ; if ( oCalls ) { for ( var i = 0 ; i < oCalls.length ; i++ ) ! { ! if ( typeof( oCalls[ i ] ) == "function" ) // A Function Pointer ! bReturnValue = ( bReturnValue && oCalls[ i ]( params ) ) ; ! else // A string (code to run) ! bReturnValue = ( bReturnValue && eval( oCalls[ i ] ) ) ; ! } } return bReturnValue ; ! } ! --- 36,46 ---- var bReturnValue = true ; var oCalls = this.RegisteredEvents[ eventName ] ; if ( oCalls ) { for ( var i = 0 ; i < oCalls.length ; i++ ) ! bReturnValue = ( oCalls[ i ]( params ) && bReturnValue ) ; } return bReturnValue ; ! } \ No newline at end of file Index: fcktoolbarfontscombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fcktoolbarfontscombo.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fcktoolbarfontscombo.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,16 **** * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * ! * Version: 2.0 RC2 * Modified: 2004-11-19 07:50:38 * --- 12,16 ---- * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * ! * Version: 2.0 RC3 * Modified: 2004-11-19 07:50:38 * Index: fcktoolbarfontsizecombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fcktoolbarfontsizecombo.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fcktoolbarfontsizecombo.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,16 **** * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * ! * Version: 2.0 RC2 * Modified: 2004-11-19 07:50:29 * --- 12,16 ---- * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * ! * Version: 2.0 RC3 * Modified: 2004-11-19 07:50:29 * Index: fcktoolbarspecialcombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fcktoolbarspecialcombo.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fcktoolbarspecialcombo.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 19,24 **** * - CreateItems( targetSpecialCombo ) [ Add all items in the special combo ] * ! * Version: 2.0 RC2 ! * Modified: 2004-11-15 10:53:54 * * File Authors: --- 19,24 ---- * - CreateItems( targetSpecialCombo ) [ Add all items in the special combo ] * ! * Version: 2.0 RC3 ! * Modified: 2005-01-04 18:41:03 * * File Authors: *************** *** 27,31 **** var FCKToolbarSpecialCombo = function() ! {} FCKToolbarSpecialCombo.prototype.CreateInstance = function( parentToolbar ) --- 27,34 ---- var FCKToolbarSpecialCombo = function() ! { ! this.SourceView = false ; ! this.ContextSensitive = true ; ! } FCKToolbarSpecialCombo.prototype.CreateInstance = function( parentToolbar ) *************** *** 35,39 **** this._Combo.PanelWidth = 150 ; this._Combo.PanelMaxHeight = 150 ; ! this.CreateItems( this._Combo ) ; --- 38,42 ---- this._Combo.PanelWidth = 150 ; this._Combo.PanelMaxHeight = 150 ; ! this.CreateItems( this._Combo ) ; *************** *** 53,60 **** var eState ; ! if ( FCK.EditMode == FCK_EDITMODE_SOURCE && ! this.SourceView ) ! eState = FCK_TRISTATE_DISABLED ; ! else ! { var sValue = this.Command.GetState() ; --- 56,63 ---- var eState ; ! // if ( FCK.EditMode == FCK_EDITMODE_SOURCE && ! this.SourceView ) ! // eState = FCK_TRISTATE_DISABLED ; ! // else ! // { var sValue = this.Command.GetState() ; *************** *** 63,78 **** eState = FCK_TRISTATE_ON ; ! if ( typeof( this.RefreshActiveItems ) == 'function' ) ! this.RefreshActiveItems( this._Combo ) ; ! else { ! this._Combo.DeselectAll() ; ! this._Combo.SelectItem( sValue ) ; ! this._Combo.SetLabelById( sValue ) ; } } else eState = FCK_TRISTATE_DISABLED ; ! } // If there are no state changes then do nothing and return. --- 66,83 ---- eState = FCK_TRISTATE_ON ; ! if ( !this.RefreshActiveItems ) { ! this.RefreshActiveItems = function( combo, value ) ! { ! this._Combo.DeselectAll() ; ! this._Combo.SelectItem( value ) ; ! this._Combo.SetLabelById( value ) ; ! } } + this.RefreshActiveItems( this._Combo, sValue ) ; } else eState = FCK_TRISTATE_DISABLED ; ! // } // If there are no state changes then do nothing and return. *************** *** 90,92 **** --- 95,110 ---- // Updates the graphical state. this._Combo.SetEnabled( eState != FCK_TRISTATE_DISABLED ) ; + } + + FCKToolbarSpecialCombo.prototype.Enable = function() + { + this.RefreshState() ; + } + + FCKToolbarSpecialCombo.prototype.Disable = function() + { + this.State = FCK_TRISTATE_DISABLED ; + this._Combo.DeselectAll() ; + this._Combo.SetLabel( '' ) ; + this._Combo.SetEnabled( false ) ; } \ No newline at end of file Index: fckcontextmenuitem.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckcontextmenuitem.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckcontextmenuitem.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckcontextmenuitem.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,17 **** * FCKContextMenuItem Class: represents a item in the context menu. * ! * Version: 2.0 RC2 ! * Modified: 2004-11-10 17:14:48 * * File Authors: --- 12,17 ---- * FCKContextMenuItem Class: represents a item in the context menu. * ! * Version: 2.0 RC3 ! * Modified: 2005-02-23 23:44:49 * * File Authors: *************** *** 50,55 **** this._Row.onclick = function() { ! this.FCKContextMenuItem.ContextMenu.Hide() ; ! this.FCKContextMenuItem.Command.Execute() ; return false ; } --- 50,58 ---- this._Row.onclick = function() { ! if ( this.className != 'CM_Disabled' ) ! { ! this.FCKContextMenuItem.ContextMenu.Hide() ; ! this.FCKContextMenuItem.Command.Execute() ; ! } return false ; } *************** *** 58,62 **** oCell.className = 'CM_Icon' ; ! if ( this.HasIcon ) oCell.innerHTML = '<img alt="" src="' + FCKConfig.SkinPath + 'toolbar/button.' + this.Command.Name.toLowerCase() + '.gif" width="21" height="20" unselectable="on">' ; oCell = this._Row.insertCell(-1) ; --- 61,65 ---- oCell.className = 'CM_Icon' ; ! if ( this.HasIcon ) oCell.innerHTML = '<img alt="" src="' + FCKConfig.SkinPath + 'toolbar/' + this.Command.Name.toLowerCase() + '.gif" width="21" height="20" unselectable="on">' ; oCell = this._Row.insertCell(-1) ; *************** *** 90,94 **** ----------------------------------------- <tr class="CM_Disabled"> ! <td class="CM_Icon"><img alt="" src="icons/button.cut.gif" width="21" height="20" unselectable="on"></td> <td class="CM_Label" unselectable="on">Cut</td> </tr> --- 93,97 ---- ----------------------------------------- <tr class="CM_Disabled"> ! <td class="CM_Icon"><img alt="" src="icons/cut.gif" width="21" height="20" unselectable="on"></td> <td class="CM_Label" unselectable="on">Cut</td> </tr> Index: fckcontextmenuseparator.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckcontextmenuseparator.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckcontextmenuseparator.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckcontextmenuseparator.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,16 **** * FCKContextMenuSeparator Class: represents a separator in the toolbar. * ! * Version: 2.0 RC2 * Modified: 2004-05-31 23:07:47 * --- 12,16 ---- * FCKContextMenuSeparator Class: represents a separator in the toolbar. * ! * Version: 2.0 RC3 * Modified: 2004-05-31 23:07:47 * Index: fcktoolbar.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbar.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fcktoolbar.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fcktoolbar.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 13,17 **** * toolbar set visible, but just a strip on it... a group of items. * ! * Version: 2.0 RC2 * Modified: 2004-05-31 23:07:47 * --- 13,17 ---- * toolbar set visible, but just a strip on it... a group of items. * ! * Version: 2.0 RC3 * Modified: 2004-05-31 23:07:47 * Index: fcktoolbarpanelbutton.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fcktoolbarpanelbutton.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fcktoolbarpanelbutton.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 13,18 **** * that shows a panel when pressed. * ! * Version: 2.0 RC2 ! * Modified: 2004-11-30 09:26:22 * * File Authors: --- 13,18 ---- * that shows a panel when pressed. * ! * Version: 2.0 RC3 ! * Modified: 2005-01-10 15:28:31 * * File Authors: *************** *** 35,39 **** <table class="TB_ButtonType_Icon" cellspacing="0" cellpadding="0" border="0"> <tr> ! <td class="TB_Icon"><img src="icons/button.redo.gif" width="21" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = '';"></td> <td class="TB_Text" unselectable="on">Redo</td> <td class="TB_ButtonArrow"><img src="skin/images/toolbar_buttonarrow.gif" width="5" height="3"></td> --- 35,39 ---- <table class="TB_ButtonType_Icon" cellspacing="0" cellpadding="0" border="0"> <tr> ! <td class="TB_Icon"><img src="icons/redo.gif" width="21" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = '';"></td> <td class="TB_Text" unselectable="on">Redo</td> <td class="TB_ButtonArrow"><img src="skin/images/toolbar_buttonarrow.gif" width="5" height="3"></td> *************** *** 100,104 **** '<table title="' + this.Tooltip + '" class="' + sClass + '" cellspacing="0" cellpadding="0" border="0" unselectable="on">' + '<tr>' + ! '<td class="TB_Icon" unselectable="on"><img src="' + FCKConfig.SkinPath + 'toolbar/button.' + this.Command.Name.toLowerCase() + '.gif" width="21" height="21" unselectable="on"></td>' + '<td class="TB_Text" unselectable="on">' + this.Label + '</td>' + '<td class="TB_ButtonArrow" unselectable="on"><img src="' + FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif" width="5" height="3"></td>' + --- 100,104 ---- '<table title="' + this.Tooltip + '" class="' + sClass + '" cellspacing="0" cellpadding="0" border="0" unselectable="on">' + '<tr>' + ! '<td class="TB_Icon" unselectable="on"><img src="' + FCKConfig.SkinPath + 'toolbar/' + this.Command.Name.toLowerCase() + '.gif" width="21" height="21" unselectable="on"></td>' + '<td class="TB_Text" unselectable="on">' + this.Label + '</td>' + '<td class="TB_ButtonArrow" unselectable="on"><img src="' + FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif" width="5" height="3"></td>' + *************** *** 113,117 **** } ! // The Panel Button works like a normal button so the refresh state function // defined for the normal button can be reused here. ! FCKToolbarPanelButton.prototype.RefreshState = FCKToolbarButton.prototype.RefreshState ; \ No newline at end of file --- 113,119 ---- } ! // The Panel Button works like a normal button so the refresh state functions // defined for the normal button can be reused here. ! FCKToolbarPanelButton.prototype.RefreshState = FCKToolbarButton.prototype.RefreshState ; ! FCKToolbarPanelButton.prototype.Enable = FCKToolbarButton.prototype.Enable ; ! FCKToolbarPanelButton.prototype.Disable = FCKToolbarButton.prototype.Disable ; \ No newline at end of file Index: fcktoolbarcombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarcombo.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fcktoolbarcombo.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fcktoolbarcombo.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,16 **** * FCKToolbarCombo Class: represents a combo in the toolbar. * ! * Version: 2.0 RC2 * Modified: 2004-11-10 17:14:48 * --- 12,16 ---- * FCKToolbarCombo Class: represents a combo in the toolbar. * ! * Version: 2.0 RC3 * Modified: 2004-11-10 17:14:48 * Index: fcktoolbarbutton.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarbutton.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fcktoolbarbutton.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fcktoolbarbutton.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,17 **** * FCKToolbarButton Class: represents a button in the toolbar. * ! * Version: 2.0 RC2 ! * Modified: 2004-11-16 00:40:01 * * File Authors: --- 12,17 ---- * FCKToolbarButton Class: represents a button in the toolbar. * ! * Version: 2.0 RC3 ! * Modified: 2005-01-18 11:07:28 * * File Authors: *************** *** 19,31 **** */ ! var FCKToolbarButton = function( commandName, label, tooltip, style, sourceView ) { ! this.Command = FCKCommands.GetCommand( commandName ) ; ! this.Label = label ? label : commandName ; ! this.Tooltip = tooltip ? tooltip : ( label ? label : commandName) ; ! this.Style = style ? style : FCK_TOOLBARITEM_ONLYICON ; ! this.SourceView = sourceView ? true : false ; ! this.IconPath = FCKConfig.SkinPath + 'toolbar/button.' + commandName.toLowerCase() + '.gif' ; ! this.State = FCK_UNKNOWN ; } --- 19,32 ---- */ ! var FCKToolbarButton = function( commandName, label, tooltip, style, sourceView, contextSensitive ) { ! this.Command = FCKCommands.GetCommand( commandName ) ; ! this.Label = label ? label : commandName ; ! this.Tooltip = tooltip ? tooltip : ( label ? label : commandName) ; ! this.Style = style ? style : FCK_TOOLBARITEM_ONLYICON ; ! this.SourceView = sourceView ? true : false ; ! this.ContextSensitive = contextSensitive ? true : false ; ! this.IconPath = FCKConfig.SkinPath + 'toolbar/' + commandName.toLowerCase() + '.gif' ; ! this.State = FCK_UNKNOWN ; } *************** *** 36,40 **** <table class="TB_ButtonType_Icon" cellspacing="0" cellpadding="0" border="0"> <tr> ! <td class="TB_Icon"><img src="icons/button.redo.gif" width="21" height="21"></td> <td class="TB_Text" unselectable="on">Redo</td> </tr> --- 37,41 ---- <table class="TB_ButtonType_Icon" cellspacing="0" cellpadding="0" border="0"> <tr> ! <td class="TB_Icon"><img src="icons/redo.gif" width="21" height="21"></td> <td class="TB_Text" unselectable="on">Redo</td> </tr> *************** *** 102,112 **** FCKToolbarButton.prototype.RefreshState = function() { // Gets the actual state. ! var eState ; ! ! if ( FCK.EditMode == FCK_EDITMODE_SOURCE && ! this.SourceView ) ! eState = FCK_TRISTATE_DISABLED ; ! else ! eState = this.Command.GetState() ; // If there are no state changes than do nothing and return. --- 103,117 ---- FCKToolbarButton.prototype.RefreshState = function() { + /* + TODO: Delete this commend block on stable version. // Gets the actual state. ! // var eState ; ! ! // if ( FCK.EditMode == FCK_EDITMODE_SOURCE && ! this.SourceView ) ! // eState = FCK_TRISTATE_DISABLED ; ! // else ! */ ! // Gets the actual state. ! var eState = this.Command.GetState() ; // If there are no state changes than do nothing and return. *************** *** 128,130 **** --- 133,146 ---- break ; } + } + + FCKToolbarButton.prototype.Enable = function() + { + this.RefreshState() ; + } + + FCKToolbarButton.prototype.Disable = function() + { + this.State = FCK_TRISTATE_DISABLED ; + this.DOMDiv.className = 'TB_Button_Disabled' ; } \ No newline at end of file Index: fckstylesloader.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckstylesloader.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckstylesloader.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckstylesloader.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 13,17 **** * for loading the styles defined in the XML file. * ! * Version: 2.0 RC2 * Modified: 2004-11-22 18:08:11 * --- 13,17 ---- * for loading the styles defined in the XML file. * ! * Version: 2.0 RC3 * Modified: 2004-11-22 18:08:11 * Index: fckstyledef.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckstyledef.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckstyledef.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckstyledef.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,16 **** * FCKStyleDef Class: represents a single stylke definition. * ! * Version: 2.0 RC2 * Modified: 2004-11-22 11:09:42 * --- 12,16 ---- * FCKStyleDef Class: represents a single stylke definition. * ! * Version: 2.0 RC3 * Modified: 2004-11-22 11:09:42 * Index: fckstyledef_gecko.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckstyledef_gecko.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckstyledef_gecko.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckstyledef_gecko.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,16 **** * FCKStyleDef Class: represents a single stylke definition. (Gecko specific) * ! * Version: 2.0 RC2 * Modified: 2004-11-22 11:09:45 * --- 12,16 ---- * FCKStyleDef Class: represents a single stylke definition. (Gecko specific) * ! * Version: 2.0 RC3 * Modified: 2004-11-22 11:09:45 * Index: fckspecialcombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckspecialcombo.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckspecialcombo.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckspecialcombo.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,17 **** * FCKSpecialCombo Class: represents a special combo. * ! * Version: 2.0 RC2 ! * Modified: 2004-11-22 11:10:06 * * File Authors: --- 12,17 ---- * FCKSpecialCombo Class: represents a special combo. * ! * Version: 2.0 RC3 ! * Modified: 2005-02-23 18:56:39 * * File Authors: *************** *** 184,187 **** --- 184,191 ---- this.SpecialCombo._Panel.PanelDiv.style.width = this.SpecialCombo.PanelWidth + 'px' ; + + if ( FCKBrowserInfo.IsGecko ) + this.SpecialCombo._Panel.PanelDiv.style.overflow = '-moz-scrollbars-vertical' ; + this.SpecialCombo._Panel.Show( 0, this.offsetHeight, this, null, this.SpecialCombo.PanelMaxHeight, true ) ; } Index: fcktoolbarstylecombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fcktoolbarstylecombo.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fcktoolbarstylecombo.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,17 **** * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * ! * Version: 2.0 RC2 ! * Modified: 2004-11-19 07:50:11 * * File Authors: --- 12,17 ---- * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * ! * Version: 2.0 RC3 ! * Modified: 2004-12-31 15:04:31 * * File Authors: Index: fckpanel_ie.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckpanel_ie.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckpanel_ie.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckpanel_ie.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,16 **** * FCKPanel Class: Creates and manages floating panels in IE Browsers. * ! * Version: 2.0 RC2 * Modified: 2004-11-10 13:20:42 * --- 12,16 ---- * FCKPanel Class: Creates and manages floating panels in IE Browsers. * ! * Version: 2.0 RC3 * Modified: 2004-11-10 13:20:42 * Index: fckcontextmenugroup.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckcontextmenugroup.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckcontextmenugroup.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckcontextmenugroup.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 13,18 **** * menu. Generaly a group of items is directly dependent of the same rules. * ! * Version: 2.0 RC2 ! * Modified: 2004-05-31 23:07:47 * * File Authors: --- 13,18 ---- * menu. Generaly a group of items is directly dependent of the same rules. * ! * Version: 2.0 RC3 ! * Modified: 2005-02-09 19:35:56 * * File Authors: *************** *** 20,24 **** */ ! var FCKContextMenuGroup = function() { this.IsVisible = true ; --- 20,24 ---- */ ! var FCKContextMenuGroup = function( addSeparator, contextMenu, firstItemCommand, firstItemLabel, hasIcon ) { this.IsVisible = true ; *************** *** 27,30 **** --- 27,36 ---- this.Items = new Array() ; + if ( addSeparator ) + this.Add( new FCKContextMenuSeparator() ) ; + + if ( contextMenu && firstItemCommand && firstItemLabel ) + this.Add( new FCKContextMenuItem( contextMenu, firstItemCommand, firstItemLabel, hasIcon ) ) ; + // This OPTIONAL function checks if the group must be shown. this.ValidationFunction = null ; Index: fckpanel_gecko.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckpanel_gecko.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckpanel_gecko.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fckpanel_gecko.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,17 **** * FCKPanel Class: Creates and manages floating panels in Gecko Browsers. * ! * Version: 2.0 RC2 ! * Modified: 2004-11-10 13:22:16 * * File Authors: --- 12,17 ---- * FCKPanel Class: Creates and manages floating panels in Gecko Browsers. * ! * Version: 2.0 RC3 ! * Modified: 2005-02-23 18:56:41 * * File Authors: *************** *** 27,32 **** this.Window = window ; ! while ( this.Window != window.top && this.Window.parent.document.body.tagName != 'FRAMESET' ) { this.Window = this.Window.parent ; } --- 27,45 ---- this.Window = window ; ! while ( this.Window != window.top ) { + // Try/Catch must be used to avoit an error when using a frameset + // on a different domain: + // "Permission denied to get property HTMLDocument.Body". + try + { + if ( this.Window.parent.document.body.tagName == 'FRAMESET' ) + break ; + } + catch (e) + { + break ; + } + this.Window = this.Window.parent ; } *************** *** 105,113 **** function SetOnClickListener( targetWindow, targetFunction ) { ! if ( targetWindow == null || ( targetWindow.frameElement && targetWindow.frameElement.IsFCKPanel ) ) ! return ; - targetWindow.document.addEventListener( 'click', targetFunction, false ) ; - for ( var i = 0 ; i < targetWindow.frames.length ; i++ ) SetOnClickListener( targetWindow.frames[i], targetFunction ) ; --- 118,133 ---- function SetOnClickListener( targetWindow, targetFunction ) { ! // Try/Catch must be used to avoit an error when using a frameset ! // on a different domain: ! // "Permission denied to get property Window.frameElement". ! try ! { ! if ( targetWindow == null || ( targetWindow.frameElement && targetWindow.frameElement.IsFCKPanel ) ) ! return ; ! ! targetWindow.document.addEventListener( 'click', targetFunction, false ) ; ! } ! catch (e) {} for ( var i = 0 ; i < targetWindow.frames.length ; i++ ) SetOnClickListener( targetWindow.frames[i], targetFunction ) ; *************** *** 145,148 **** --- 165,172 ---- FCKPanel.prototype.Hide = function() { + // There is a bug on Firefox over Mac. It doesn't hide the Panel + // scrollbars, so we must force it. + this.PanelDiv.style.overflow = 'visible' ; + this._IFrame.style.visibility = 'hidden' ; // this._IFrame.style.left = this._IFrame.style.top = '0px' ; *************** *** 162,172 **** return ; ! if ( targetWindow.frameElement && targetWindow.frameElement.IsFCKPanel ) ! targetWindow.frameElement.Panel.Hide() ; ! else ! targetWindow.document.removeEventListener( 'click', FCKPanelEventHandlers.OnDocumentClick, false ) ; ! for ( var i = 0 ; i < targetWindow.frames.length ; i++ ) ! RemoveOnClickListener( targetWindow.frames[i] ) ; } RemoveOnClickListener( window.top ) ; --- 186,203 ---- return ; ! // Try/Catch must be used to avoit an error when using a frameset ! // on a different domain: ! // "Permission denied to get property Window.frameElement". ! try ! { ! if ( targetWindow.frameElement && targetWindow.frameElement.IsFCKPanel ) ! targetWindow.frameElement.Panel.Hide() ; ! else ! targetWindow.document.removeEventListener( 'click', FCKPanelEventHandlers.OnDocumentClick, false ) ; ! } ! catch (e) {} ! for ( var i = 0 ; i < targetWindow.frames.length ; i++ ) ! RemoveOnClickListener( targetWindow.frames[i] ) ; } RemoveOnClickListener( window.top ) ; Index: fcktoolbarfontformatcombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fcktoolbarfontformatcombo.js 28 Feb 2005 00:33:32 -0000 1.1.1.1 --- fcktoolbarfontformatcombo.js 23 Aug 2005 13:14:06 -0000 1.2 *************** *** 1,3 **** ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben --- 1,3 ---- ! /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben *************** *** 12,16 **** * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * ! * Version: 2.0 RC2 * Modified: 2004-12-05 22:25:20 * --- 12,16 ---- * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * ! * Version: 2.0 RC3 * Modified: 2004-12-05 22:25:20 * |