Update of /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv563/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 fcktoolbarbreak_gecko.js fcktoolbarbreak_ie.js fcktoolbarbutton.js fcktoolbarfontformatcombo.js fcktoolbarfontscombo.js fcktoolbarfontsizecombo.js fcktoolbarpanelbutton.js fcktoolbarspecialcombo.js fcktoolbarstylecombo.js fckxml_gecko.js fckxml_ie.js Log Message: Commiting file additions and modification from SVN revision 2028 to 2029... Changes made by frank on 2005-09-29 21:42:57 +0200 (Thu, 29 Sep 2005) corresponding to SVN revision 2029 with message: updating fckeditor in dynapi Index: fckstyledef_ie.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckstyledef_ie.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckstyledef_ie.js 1 Sep 2005 18:15:40 -0000 1.4 --- fckstyledef_ie.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** * FCKStyleDef Class: represents a single stylke definition. (IE specific) * - * Version: 2.0 RC3 - * Modified: 2004-11-22 11:09:44 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ FCKStyleDef.prototype.ApplyToSelection = function() --- 12,18 ---- * FCKStyleDef Class: represents a single stylke definition. (IE specific) * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ FCKStyleDef.prototype.ApplyToSelection = function() Index: fcktoolbarpanelbutton.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fcktoolbarpanelbutton.js 1 Sep 2005 18:15:40 -0000 1.4 --- fcktoolbarpanelbutton.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 13,22 **** * that shows a panel when pressed. * - * Version: 2.0 RC3 - * Modified: 2005-01-10 15:28:31 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarPanelButton = function( commandName, label, tooltip, style ) --- 13,19 ---- * that shows a panel when pressed. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarPanelButton = function( commandName, label, tooltip, style ) *************** *** 29,45 **** } FCKToolbarPanelButton.prototype.CreateInstance = function( parentToolbar ) { - /* - <td title="Bold" class="TB_Button_Off" unselectable="on" onmouseover="Button_OnMouseOver(this);" onmouseout="Button_OnMouseOut(this);"> - <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> - </tr> - </table> - </td> - */ this.DOMDiv = document.createElement( 'div' ) ; this.DOMDiv.className = 'TB_Button_Off' ; --- 26,50 ---- } + FCKToolbarPanelButton.prototype.Click = function(e) + { + // For Mozilla we must stop the event propagation to avoid it hiding + // the panel because of a click outside of it. + if ( e ) + { + e.stopPropagation() ; + FCKPanelEventHandlers.OnDocumentClick( e ) ; + } + + if ( this.State != FCK_TRISTATE_DISABLED ) + { + this.Command.Execute(0, this.DOMDiv.offsetHeight, this.DOMDiv) ; + // this.FCKToolbarButton.HandleOnClick( this, e ) ; + } + + return false ; + } + FCKToolbarPanelButton.prototype.CreateInstance = function( parentToolbar ) { this.DOMDiv = document.createElement( 'div' ) ; this.DOMDiv.className = 'TB_Button_Off' ; *************** *** 47,109 **** this.DOMDiv.FCKToolbarButton = this ; ! this.DOMDiv.onmouseover = function() ! { ! if ( this.FCKToolbarButton.State != FCK_TRISTATE_DISABLED ) ! { ! this.className = 'TB_Button_On' ; ! } ! } ! ! this.DOMDiv.onmouseout = function() ! { ! if ( this.FCKToolbarButton.State != FCK_TRISTATE_DISABLED && this.FCKToolbarButton.State != FCK_TRISTATE_ON ) ! { ! this.className = 'TB_Button_Off' ; ! } ! } ! ! this.DOMDiv.onclick = function( e ) ! { ! // For Mozilla we must stop the event propagation to avoid it hiding ! // the panel because of a click outside of it. ! if ( e ) ! { ! e.stopPropagation() ; ! FCKPanelEventHandlers.OnDocumentClick( e ) ; ! } ! ! if ( this.FCKToolbarButton.State != FCK_TRISTATE_DISABLED ) ! { ! this.FCKToolbarButton.Command.Execute(0, this.FCKToolbarButton.DOMDiv.offsetHeight, this.FCKToolbarButton.DOMDiv) ; ! // this.FCKToolbarButton.HandleOnClick( this.FCKToolbarButton, e ) ; ! } ! return false ; ! } ! ! // Gets the correct CSS class to use for the specified style (param). ! var sClass ; ! switch ( this.Style ) ! { ! case FCK_TOOLBARITEM_ONLYICON : ! sClass = 'TB_ButtonType_Icon' ; ! break ; ! case FCK_TOOLBARITEM_ONLYTEXT : ! sClass = 'TB_ButtonType_Text' ; ! break ; ! case FCK_TOOLBARITEM_ICONTEXT : ! sClass = '' ; ! break ; ! } ! ! this.DOMDiv.innerHTML = ! '<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>' + '</tr>' + '</table>' ; var oCell = parentToolbar.DOMRow.insertCell(-1) ; --- 52,71 ---- this.DOMDiv.FCKToolbarButton = this ; ! var sHtml = ! '<table title="' + this.Tooltip + '" cellspacing="0" cellpadding="0" border="0" unselectable="on">' + ! '<tr>' ; ! if ( this.Style != FCK_TOOLBARITEM_ONLYTEXT ) ! sHtml += '<td class="TB_Icon" unselectable="on"><img src="' + FCKConfig.SkinPath + 'toolbar/' + this.Command.Name.toLowerCase() + '.gif" width="21" height="21" unselectable="on"></td>' ; ! ! if ( this.Style != FCK_TOOLBARITEM_ONLYICON ) ! sHtml += '<td class="TB_Text" unselectable="on" nowrap>' + this.Label + '</td>' ; ! ! sHtml += '<td class="TB_ButtonArrow" unselectable="on"><img src="' + FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif" width="5" height="3"></td>' + '</tr>' + '</table>' ; + this.DOMDiv.innerHTML = sHtml ; var oCell = parentToolbar.DOMRow.insertCell(-1) ; Index: fcktoolbarbutton.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarbutton.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fcktoolbarbutton.js 1 Sep 2005 18:15:40 -0000 1.4 --- fcktoolbarbutton.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** * FCKToolbarButton Class: represents a button in the toolbar. * - * Version: 2.0 RC3 - * Modified: 2005-01-18 11:07:28 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarButton = function( commandName, label, tooltip, style, sourceView, contextSensitive ) --- 12,18 ---- * FCKToolbarButton Class: represents a button in the toolbar. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarButton = function( commandName, label, tooltip, style, sourceView, contextSensitive ) *************** *** 33,97 **** FCKToolbarButton.prototype.CreateInstance = function( parentToolbar ) { - /* - <td title="Bold" class="TB_Button_Off" unselectable="on" onmouseover="Button_OnMouseOver(this);" onmouseout="Button_OnMouseOut(this);"> - <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> - </table> - </td> - */ this.DOMDiv = document.createElement( 'div' ) ; ! this.DOMDiv.className = 'TB_Button_Off' ; ! this.DOMDiv.FCKToolbarButton = this ; ! this.DOMDiv.onmouseover = function() ! { ! if ( this.FCKToolbarButton.State != FCK_TRISTATE_DISABLED ) ! { ! this.className = 'TB_Button_On' ; ! } ! } ! this.DOMDiv.onmouseout = function() ! { ! if ( this.FCKToolbarButton.State != FCK_TRISTATE_DISABLED && this.FCKToolbarButton.State != FCK_TRISTATE_ON ) ! { ! this.className = 'TB_Button_Off' ; ! } ! } ! this.DOMDiv.onclick = function() ! { ! if ( this.FCKToolbarButton.State != FCK_TRISTATE_DISABLED ) ! this.FCKToolbarButton.Command.Execute() ; ! return false ; ! } ! ! // Gets the correct CSS class to use for the specified style (param). ! var sClass ; ! switch ( this.Style ) ! { ! case FCK_TOOLBARITEM_ONLYICON : ! sClass = 'TB_ButtonType_Icon' ; ! break ; ! case FCK_TOOLBARITEM_ONLYTEXT : ! sClass = 'TB_ButtonType_Text' ; ! break ; ! case FCK_TOOLBARITEM_ICONTEXT : ! sClass = '' ; ! break ; ! } ! ! this.DOMDiv.innerHTML = ! '<table title="' + this.Tooltip + '" class="' + sClass + '" cellspacing="0" cellpadding="0" border="0" unselectable="on">' + ! '<tr>' + ! '<td class="TB_Icon" unselectable="on"><img src="' + this.IconPath + '" width="21" height="21" unselectable="on"></td>' + ! '<td class="TB_Text" unselectable="on">' + this.Label + '</td>' + '</tr>' + '</table>' ; var oCell = parentToolbar.DOMRow.insertCell(-1) ; --- 30,53 ---- FCKToolbarButton.prototype.CreateInstance = function( parentToolbar ) { this.DOMDiv = document.createElement( 'div' ) ; ! this.DOMDiv.className = 'TB_Button_Off' ; ! this.DOMDiv.FCKToolbarButton = this ; ! var sHtml = ! '<table title="' + this.Tooltip + '" cellspacing="0" cellpadding="0" border="0" unselectable="on">' + ! '<tr>' ; ! if ( this.Style != FCK_TOOLBARITEM_ONLYTEXT ) ! sHtml += '<td class="TB_Icon" unselectable="on"><img src="' + this.IconPath + '" width="21" height="21" unselectable="on"></td>' ; ! if ( this.Style != FCK_TOOLBARITEM_ONLYICON ) ! sHtml += '<td class="TB_Text" unselectable="on" nowrap>' + this.Label + '</td>' ; ! ! sHtml += '</tr>' + '</table>' ; + this.DOMDiv.innerHTML = sHtml ; var oCell = parentToolbar.DOMRow.insertCell(-1) ; *************** *** 125,138 **** case FCK_TRISTATE_ON : this.DOMDiv.className = 'TB_Button_On' ; break ; case FCK_TRISTATE_OFF : this.DOMDiv.className = 'TB_Button_Off' ; break ; default : ! this.DOMDiv.className = 'TB_Button_Disabled' ; break ; } } FCKToolbarButton.prototype.Enable = function() { --- 81,135 ---- case FCK_TRISTATE_ON : this.DOMDiv.className = 'TB_Button_On' ; + + this.DOMDiv.onmouseover = FCKToolbarButton_OnMouseOnOver ; + this.DOMDiv.onmouseout = FCKToolbarButton_OnMouseOnOut ; + this.DOMDiv.onclick = FCKToolbarButton_OnClick ; + break ; case FCK_TRISTATE_OFF : this.DOMDiv.className = 'TB_Button_Off' ; + + this.DOMDiv.onmouseover = FCKToolbarButton_OnMouseOffOver ; + this.DOMDiv.onmouseout = FCKToolbarButton_OnMouseOffOut ; + this.DOMDiv.onclick = FCKToolbarButton_OnClick ; + break ; default : ! this.Disable() ; break ; } } + function FCKToolbarButton_OnMouseOnOver() + { + this.className = 'TB_Button_On TB_Button_On_Over' ; + } + + function FCKToolbarButton_OnMouseOnOut() + { + this.className = 'TB_Button_On' ; + } + + function FCKToolbarButton_OnMouseOffOver() + { + this.className = 'TB_Button_On TB_Button_Off_Over' ; + } + + function FCKToolbarButton_OnMouseOffOut() + { + this.className = 'TB_Button_Off' ; + } + + function FCKToolbarButton_OnClick(e) + { + this.FCKToolbarButton.Click(e) ; + return false ; + } + + FCKToolbarButton.prototype.Click = function() + { + this.Command.Execute() ; + } + FCKToolbarButton.prototype.Enable = function() { *************** *** 144,146 **** --- 141,146 ---- this.State = FCK_TRISTATE_DISABLED ; this.DOMDiv.className = 'TB_Button_Disabled' ; + this.DOMDiv.onmouseover = null ; + this.DOMDiv.onmouseout = null ; + this.DOMDiv.onclick = null ; } \ No newline at end of file Index: fckstyledef_gecko.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckstyledef_gecko.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckstyledef_gecko.js 1 Sep 2005 18:15:40 -0000 1.4 --- fckstyledef_gecko.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** * FCKStyleDef Class: represents a single stylke definition. (Gecko specific) * - * Version: 2.0 RC3 - * Modified: 2004-11-22 11:09:45 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ FCKStyleDef.prototype.ApplyToSelection = function() --- 12,18 ---- * FCKStyleDef Class: represents a single stylke definition. (Gecko specific) * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ FCKStyleDef.prototype.ApplyToSelection = function() Index: fcktoolbarfontscombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fcktoolbarfontscombo.js 1 Sep 2005 18:15:40 -0000 1.4 --- fcktoolbarfontscombo.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * - * Version: 2.0 RC3 - * Modified: 2004-11-19 07:50:38 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarFontsCombo = function() --- 12,18 ---- * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarFontsCombo = function() Index: fckspecialcombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckspecialcombo.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckspecialcombo.js 1 Sep 2005 18:15:40 -0000 1.4 --- fckspecialcombo.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** * FCKSpecialCombo Class: represents a special combo. * - * Version: 2.0 RC3 - * Modified: 2005-02-23 18:56:39 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKSpecialCombo = function( caption ) --- 12,18 ---- * FCKSpecialCombo Class: represents a special combo. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKSpecialCombo = function( caption ) *************** *** 41,44 **** --- 38,61 ---- } + function FCKSpecialCombo_ItemOnMouseOver() + { + this.className += ' SC_ItemOver' ; + } + + function FCKSpecialCombo_ItemOnMouseOut() + { + this.className = this.originalClass ; + } + + function FCKSpecialCombo_ItemOnClick() + { + this.FCKSpecialCombo._Panel.Hide() ; + + this.FCKSpecialCombo.SetLabel( this.FCKItemLabel ) ; + + if ( typeof( this.FCKSpecialCombo.OnSelect ) == 'function' ) + this.FCKSpecialCombo.OnSelect( this.FCKItemID, this ) ; + } + FCKSpecialCombo.prototype.AddItem = function( id, html, label ) { *************** *** 52,74 **** oDiv.Selected = false ; ! oDiv.onmouseover = function() ! { ! this.className += ' SC_ItemOver' ; ! } ! ! oDiv.onmouseout = function() ! { ! this.className = this.originalClass ; ! } ! ! oDiv.onclick = function() ! { ! this.FCKSpecialCombo._Panel.Hide() ; ! ! this.FCKSpecialCombo.SetLabel( this.FCKItemLabel ) ; ! ! if ( typeof( this.FCKSpecialCombo.OnSelect ) == 'function' ) ! this.FCKSpecialCombo.OnSelect( this.FCKItemID, this ) ; ! } this.Items[ id.toString().toLowerCase() ] = oDiv ; --- 69,75 ---- oDiv.Selected = false ; ! oDiv.onmouseover = FCKSpecialCombo_ItemOnMouseOver ; ! oDiv.onmouseout = FCKSpecialCombo_ItemOnMouseOut ; ! oDiv.onclick = FCKSpecialCombo_ItemOnClick ; this.Items[ id.toString().toLowerCase() ] = oDiv ; *************** *** 100,105 **** FCKSpecialCombo.prototype.SetLabelById = function( id ) { - FCKDebug.Output( this.Caption + ': ' + id, '#0000FF' ) ; - id = id ? id.toString().toLowerCase() : '' ; --- 101,104 ---- *************** *** 152,196 **** oField.SpecialCombo = this ; ! oField.onmouseover = function() ! { ! if ( this.SpecialCombo.Enabled ) ! this.className='SC_Field SC_FieldOver' ; ! } ! oField.onmouseout = function() ! { ! this.className='SC_Field' ; ! } ! oField.onclick = function( e ) { ! // For Mozilla we must stop the event propagation to avoid it hiding ! // the panel because of a click outside of it. ! if ( e ) ! { ! e.stopPropagation() ; ! FCKPanelEventHandlers.OnDocumentClick( e ) ; ! } ! if ( this.SpecialCombo.Enabled ) ! { ! if ( typeof( this.SpecialCombo.OnBeforeClick ) == 'function' ) ! this.SpecialCombo.OnBeforeClick( this.SpecialCombo ) ; ! if ( this.SpecialCombo._ItemsHolderEl.offsetHeight > this.SpecialCombo.PanelMaxHeight ) ! this.SpecialCombo._Panel.PanelDiv.style.height = this.SpecialCombo.PanelMaxHeight + 'px' ; ! else ! this.SpecialCombo._Panel.PanelDiv.style.height = this.SpecialCombo._ItemsHolderEl.offsetHeight + 'px' ; ! ! 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 ) ; ! } ! return false ; } } --- 151,199 ---- oField.SpecialCombo = this ; ! oField.onmouseover = FCKSpecialCombo_OnMouseOver ; ! oField.onmouseout = FCKSpecialCombo_OnMouseOut ; ! oField.onclick = FCKSpecialCombo_OnClick ; ! } ! ! function FCKSpecialCombo_OnMouseOver() ! { ! if ( this.SpecialCombo.Enabled ) ! this.className = 'SC_Field SC_FieldOver' ; ! } ! function FCKSpecialCombo_OnMouseOut() ! { ! this.className='SC_Field' ; ! } ! function FCKSpecialCombo_OnClick( e ) ! { ! // For Mozilla we must stop the event propagation to avoid it hiding ! // the panel because of a click outside of it. ! if ( e ) { ! e.stopPropagation() ; ! FCKPanelEventHandlers.OnDocumentClick( e ) ; ! } ! if ( this.SpecialCombo.Enabled ) ! { ! if ( typeof( this.SpecialCombo.OnBeforeClick ) == 'function' ) ! this.SpecialCombo.OnBeforeClick( this.SpecialCombo ) ; ! if ( this.SpecialCombo._ItemsHolderEl.offsetHeight > this.SpecialCombo.PanelMaxHeight ) ! this.SpecialCombo._Panel.PanelDiv.style.height = this.SpecialCombo.PanelMaxHeight + 'px' ; ! else ! this.SpecialCombo._Panel.PanelDiv.style.height = this.SpecialCombo._ItemsHolderEl.offsetHeight + 'px' ; ! 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 ) ; } + + return false ; } Index: fckpanel_ie.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckpanel_ie.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckpanel_ie.js 1 Sep 2005 18:15:40 -0000 1.4 --- fckpanel_ie.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** * FCKPanel Class: Creates and manages floating panels in IE Browsers. * - * Version: 2.0 RC3 - * Modified: 2004-11-10 13:20:42 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKPanel = function( parentWindow ) --- 12,18 ---- * FCKPanel Class: Creates and manages floating panels in IE Browsers. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKPanel = function( parentWindow ) *************** *** 24,27 **** --- 21,26 ---- } + function FCKPanel_OnContextMenu() { return false ; } + FCKPanel.prototype.Create = function() { *************** *** 31,35 **** this.Document = this._Popup.document ; ! this.Document.oncontextmenu = function() { return false ; } if ( this.StyleSheet ) --- 30,36 ---- this.Document = this._Popup.document ; ! aCleanupDocs[ aCleanupDocs.length ] = this.Document ; ! ! this.Document.oncontextmenu = FCKPanel_OnContextMenu ; if ( this.StyleSheet ) Index: fcktoolbarfontsizecombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fcktoolbarfontsizecombo.js 1 Sep 2005 18:15:40 -0000 1.4 --- fcktoolbarfontsizecombo.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * - * Version: 2.0 RC3 - * Modified: 2004-11-19 07:50:29 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarFontSizeCombo = function() --- 12,18 ---- * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarFontSizeCombo = function() Index: fckcontextmenuitem.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckcontextmenuitem.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckcontextmenuitem.js 1 Sep 2005 18:15:40 -0000 1.4 --- fckcontextmenuitem.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** * FCKContextMenuItem Class: represents a item in the context menu. * - * Version: 2.0 RC3 - * Modified: 2005-02-23 23:44:49 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKContextMenuItem = function( contextMenu, commandName, label, hasIcon ) --- 12,18 ---- * FCKContextMenuItem Class: represents a item in the context menu. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKContextMenuItem = function( contextMenu, commandName, label, hasIcon ) *************** *** 27,30 **** --- 24,49 ---- } + function FCKContextMenuItem_OnMouseOver() + { + if ( this.className != 'CM_Disabled' ) + this.className = 'CM_Over' ; + } + + function FCKContextMenuItem_OnMouseOut() + { + if ( this.className != 'CM_Disabled' ) + this.className = 'CM_Option' ; + } + + function FCKContextMenuItem_OnClick() + { + if ( this.className != 'CM_Disabled' ) + { + this.FCKContextMenuItem.ContextMenu.Hide() ; + this.FCKContextMenuItem.Command.Execute() ; + } + return false ; + } + FCKContextMenuItem.prototype.CreateTableRow = function( targetTable ) { *************** *** 34,60 **** this._Row.FCKContextMenuItem = this ; ! // Sets the mouse over event. ! this._Row.onmouseover = function() ! { ! if ( this.className != 'CM_Disabled' ) ! this.className = 'CM_Over' ; ! } ! ! // Sets the mouse out event. ! this._Row.onmouseout = function() ! { ! if ( this.className != 'CM_Disabled' ) ! this.className = 'CM_Option' ; ! } ! ! this._Row.onclick = function() ! { ! if ( this.className != 'CM_Disabled' ) ! { ! this.FCKContextMenuItem.ContextMenu.Hide() ; ! this.FCKContextMenuItem.Command.Execute() ; ! } ! return false ; ! } var oCell = this._Row.insertCell(-1) ; --- 53,59 ---- this._Row.FCKContextMenuItem = this ; ! this._Row.onmouseover = FCKContextMenuItem_OnMouseOver ; ! this._Row.onmouseout = FCKContextMenuItem_OnMouseOut ; ! this._Row.onclick = FCKContextMenuItem_OnClick ; var oCell = this._Row.insertCell(-1) ; Index: fcktoolbar.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbar.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fcktoolbar.js 1 Sep 2005 18:15:40 -0000 1.4 --- fcktoolbar.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 13,22 **** * toolbar set visible, but just a strip on it... a group of items. * - * Version: 2.0 RC3 - * Modified: 2004-05-31 23:07:47 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbar = function() --- 13,19 ---- * toolbar set visible, but just a strip on it... a group of items. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbar = function() *************** *** 64,66 **** oCell.innerHTML = '<img src="' + FCKConfig.SkinPath + 'images/toolbar.end.gif" width="12" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">' ; } - --- 61,62 ---- Index: fcktoolbarfontformatcombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fcktoolbarfontformatcombo.js 1 Sep 2005 18:15:40 -0000 1.4 --- fcktoolbarfontformatcombo.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * - * Version: 2.0 RC3 - * Modified: 2004-12-05 22:25:20 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarFontFormatCombo = function() --- 12,18 ---- * FCKToolbarPanelButton Class: Handles the Fonts combo selector. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarFontFormatCombo = function() Index: fckxml_gecko.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckxml_gecko.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckxml_gecko.js 1 Sep 2005 18:15:40 -0000 1.1 --- fckxml_gecko.js 29 Sep 2005 19:49:17 -0000 1.2 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,51 **** * FCKXml Class: class to load and manipulate XML files. * - * Version: 2.0 RC3 - * Modified: 2005-03-02 12:42:44 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ ! var FCKXml = function() ! {} ! FCKXml.prototype.LoadUrl = function( urlToCall, asyncFunctionPointer ) { ! var oFCKXml = this ; ! ! var bAsync = ( typeof(asyncFunctionPointer) == 'function' ) ; ! var oXmlHttp = FCKTools.CreateXmlObject( 'XmlHttp' ) ; ! oXmlHttp.open( "GET", urlToCall, bAsync ) ; ! ! if ( bAsync ) ! { ! oXmlHttp.onreadystatechange = function() ! { ! if ( oXmlHttp.readyState == 4 ) ! { ! oFCKXml.DOMDocument = oXmlHttp.responseXML ; ! asyncFunctionPointer( oFCKXml ) ; ! } ! } ! } ! ! oXmlHttp.send( null ) ; ! ! if ( ! bAsync ) ! { if ( oXmlHttp.status == 200 ) this.DOMDocument = oXmlHttp.responseXML ; --- 12,34 ---- * FCKXml Class: class to load and manipulate XML files. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ ! var FCKXml ; ! if ( !( FCKXml = NS.FCKXml ) ) { ! FCKXml = NS.FCKXml = function() ! {} ! FCKXml.prototype.LoadUrl = function( urlToCall ) ! { ! var oFCKXml = this ; ! var oXmlHttp = FCKTools.CreateXmlObject( 'XmlHttp' ) ; ! oXmlHttp.open( "GET", urlToCall, false ) ; ! oXmlHttp.send( null ) ; ! if ( oXmlHttp.status == 200 ) this.DOMDocument = oXmlHttp.responseXML ; *************** *** 55,86 **** alert( 'Error loading "' + urlToCall + '"' ) ; } - } ! FCKXml.prototype.SelectNodes = function( xpath, contextNode ) ! { ! var aNodeArray = new Array(); ! ! var xPathResult = this.DOMDocument.evaluate( xpath, contextNode ? contextNode : this.DOMDocument, ! this.DOMDocument.createNSResolver(this.DOMDocument.documentElement), XPathResult.ORDERED_NODE_ITERATOR_TYPE, null) ; ! if ( xPathResult ) { ! var oNode = xPathResult.iterateNext() ; ! while( oNode ) ! { ! aNodeArray[aNodeArray.length] = oNode ; ! oNode = xPathResult.iterateNext(); ! } ! } ! return aNodeArray ; ! } ! FCKXml.prototype.SelectSingleNode = function( xpath, contextNode ) ! { ! var xPathResult = this.DOMDocument.evaluate( xpath, contextNode ? contextNode : this.DOMDocument, ! this.DOMDocument.createNSResolver(this.DOMDocument.documentElement), 9, null); ! if ( xPathResult && xPathResult.singleNodeValue ) ! return xPathResult.singleNodeValue ; ! else ! return null ; ! } --- 38,69 ---- alert( 'Error loading "' + urlToCall + '"' ) ; } ! FCKXml.prototype.SelectNodes = function( xpath, contextNode ) { ! var aNodeArray = new Array(); ! var xPathResult = this.DOMDocument.evaluate( xpath, contextNode ? contextNode : this.DOMDocument, ! this.DOMDocument.createNSResolver(this.DOMDocument.documentElement), XPathResult.ORDERED_NODE_ITERATOR_TYPE, null) ; ! if ( xPathResult ) ! { ! var oNode = xPathResult.iterateNext() ; ! while( oNode ) ! { ! aNodeArray[aNodeArray.length] = oNode ; ! oNode = xPathResult.iterateNext(); ! } ! } ! return aNodeArray ; ! } ! FCKXml.prototype.SelectSingleNode = function( xpath, contextNode ) ! { ! var xPathResult = this.DOMDocument.evaluate( xpath, contextNode ? contextNode : this.DOMDocument, ! this.DOMDocument.createNSResolver(this.DOMDocument.documentElement), 9, null); ! ! if ( xPathResult && xPathResult.singleNodeValue ) ! return xPathResult.singleNodeValue ; ! else ! return null ; ! } ! } \ No newline at end of file Index: fckxml_ie.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckxml_ie.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckxml_ie.js 1 Sep 2005 18:15:40 -0000 1.1 --- fckxml_ie.js 29 Sep 2005 19:49:17 -0000 1.2 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 13,79 **** * (IE specific implementation) * - * Version: 2.0 RC3 - * Modified: 2005-02-27 22:15:31 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ ! var FCKXml = function() ! {} ! FCKXml.prototype.LoadUrl = function( urlToCall, asyncFunctionPointer ) { ! var oFCKXml = this ; ! ! var bAsync = ( typeof(asyncFunctionPointer) == 'function' ) ; ! var oXmlHttp = FCKTools.CreateXmlObject( 'XmlHttp' ) ; ! oXmlHttp.open( "GET", urlToCall, bAsync ) ; ! ! if ( bAsync ) ! { ! oXmlHttp.onreadystatechange = function() ! { ! if ( oXmlHttp.readyState == 4 ) ! { ! oFCKXml.DOMDocument = oXmlHttp.responseXML ; ! asyncFunctionPointer( oFCKXml ) ; ! } ! } ! } ! ! oXmlHttp.send( null ) ; ! ! if ( ! bAsync ) ! { if ( oXmlHttp.status == 200 ) this.DOMDocument = oXmlHttp.responseXML ; else if ( oXmlHttp.status == 0 && oXmlHttp.readyState == 4 ) { ! oFCKXml.DOMDocument = FCKTools.CreateXmlObject( 'DOMDocument' ) ; ! oFCKXml.DOMDocument.async = false ; ! oFCKXml.DOMDocument.resolveExternals = false ; ! oFCKXml.DOMDocument.loadXML( oXmlHttp.responseText ) ; } else alert( 'Error loading "' + urlToCall + '"' ) ; } - } ! FCKXml.prototype.SelectNodes = function( xpath, contextNode ) ! { ! if ( contextNode ) ! return contextNode.selectNodes( xpath ) ; ! else ! return this.DOMDocument.selectNodes( xpath ) ; ! } ! FCKXml.prototype.SelectSingleNode = function( xpath, contextNode ) ! { ! if ( contextNode ) ! return contextNode.selectSingleNode( xpath ) ; ! else ! return this.DOMDocument.selectSingleNode( xpath ) ; ! } --- 13,62 ---- * (IE specific implementation) * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ ! var FCKXml ; ! if ( !( FCKXml = NS.FCKXml ) ) { ! FCKXml = NS.FCKXml = function() ! {} ! FCKXml.prototype.LoadUrl = function( urlToCall ) ! { ! var oXmlHttp = FCKTools.CreateXmlObject( 'XmlHttp' ) ; ! oXmlHttp.open( "GET", urlToCall, false ) ; ! ! oXmlHttp.send( null ) ; ! if ( oXmlHttp.status == 200 ) this.DOMDocument = oXmlHttp.responseXML ; else if ( oXmlHttp.status == 0 && oXmlHttp.readyState == 4 ) { ! this.DOMDocument = FCKTools.CreateXmlObject( 'DOMDocument' ) ; ! this.DOMDocument.async = false ; ! this.DOMDocument.resolveExternals = false ; ! this.DOMDocument.loadXML( oXmlHttp.responseText ) ; } else alert( 'Error loading "' + urlToCall + '"' ) ; } ! FCKXml.prototype.SelectNodes = function( xpath, contextNode ) ! { ! if ( contextNode ) ! return contextNode.selectNodes( xpath ) ; ! else ! return this.DOMDocument.selectNodes( xpath ) ; ! } ! FCKXml.prototype.SelectSingleNode = function( xpath, contextNode ) ! { ! if ( contextNode ) ! return contextNode.selectSingleNode( xpath ) ; ! else ! return this.DOMDocument.selectSingleNode( xpath ) ; ! } ! } \ No newline at end of file Index: fcktoolbarbreak_ie.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcktoolbarbreak_ie.js 1 Sep 2005 18:15:40 -0000 1.1 --- fcktoolbarbreak_ie.js 29 Sep 2005 19:49:17 -0000 1.2 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 14,23 **** * This is the IE specific implementation. * - * Version: 2.0 RC3 - * Modified: 2005-02-09 18:07:44 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarBreak = function() --- 14,20 ---- * This is the IE specific implementation. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarBreak = function() Index: fckcontextmenugroup.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckcontextmenugroup.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckcontextmenugroup.js 1 Sep 2005 18:15:40 -0000 1.4 --- fckcontextmenugroup.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 13,22 **** * 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: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKContextMenuGroup = function( addSeparator, contextMenu, firstItemCommand, firstItemLabel, hasIcon ) --- 13,19 ---- * menu. Generaly a group of items is directly dependent of the same rules. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKContextMenuGroup = function( addSeparator, contextMenu, firstItemCommand, firstItemLabel, hasIcon ) Index: fckstylesloader.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckstylesloader.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckstylesloader.js 1 Sep 2005 18:15:40 -0000 1.4 --- fckstylesloader.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 13,22 **** * for loading the styles defined in the XML file. * - * Version: 2.0 RC3 - * Modified: 2004-11-22 18:08:11 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKStylesLoader = function() --- 13,19 ---- * for loading the styles defined in the XML file. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKStylesLoader = function() Index: fckplugin.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckplugin.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckplugin.js 1 Sep 2005 18:15:40 -0000 1.4 --- fckplugin.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** * FCKPlugin Class: Represents a single plugin. * - * Version: 2.0 RC3 - * Modified: 2005-01-19 17:27:15 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ // Certifies that the "PluginsPath" configuration ends with a slash. --- 12,18 ---- * FCKPlugin Class: Represents a single plugin. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ // Certifies that the "PluginsPath" configuration ends with a slash. Index: fckevents.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckevents.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckevents.js 1 Sep 2005 18:15:40 -0000 1.4 --- fckevents.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,46 **** * FCKEvents Class: used to handle events is a advanced way. * - * Version: 2.0 RC3 - * Modified: 2005-03-02 09:19:48 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ ! var FCKEvents = function( eventsOwner ) ! { ! this.Owner = eventsOwner ; ! this.RegisteredEvents = new Object() ; ! } ! FCKEvents.prototype.AttachEvent = function( eventName, functionPointer ) { ! if ( ! this.RegisteredEvents[ eventName ] ) this.RegisteredEvents[ eventName ] = new Array() ; ! ! this.RegisteredEvents[ eventName ][ this.RegisteredEvents[ eventName ].length ] = functionPointer ; ! } ! FCKEvents.prototype.FireEvent = function( eventName, params ) ! { ! 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 --- 12,48 ---- * FCKEvents Class: used to handle events is a advanced way. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ ! var FCKEvents ; ! if ( !( FCKEvents = NS.FCKEvents ) ) { ! FCKEvents = NS.FCKEvents = function( eventsOwner ) ! { ! this.Owner = eventsOwner ; ! this.RegisteredEvents = new Object() ; ! } ! FCKEvents.prototype.AttachEvent = function( eventName, functionPointer ) { ! if ( ! this.RegisteredEvents[ eventName ] ) this.RegisteredEvents[ eventName ] = new Array() ; ! ! this.RegisteredEvents[ eventName ][ this.RegisteredEvents[ eventName ].length ] = functionPointer ; ! } ! ! FCKEvents.prototype.FireEvent = function( eventName, params ) ! { ! var bReturnValue = true ; ! ! var oCalls = this.RegisteredEvents[ eventName ] ; ! if ( oCalls ) ! { ! for ( var i = 0 ; i < oCalls.length ; i++ ) ! bReturnValue = ( oCalls[ i ]( this.Owner, params ) && bReturnValue ) ; ! } ! ! return bReturnValue ; } } \ No newline at end of file Index: fcktoolbarspecialcombo.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fcktoolbarspecialcombo.js 1 Sep 2005 18:15:40 -0000 1.4 --- fcktoolbarspecialcombo.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 19,28 **** * - CreateItems( targetSpecialCombo ) [ Add all items in the special combo ] * - * Version: 2.0 RC3 - * Modified: 2005-01-04 18:41:03 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarSpecialCombo = function() --- 19,25 ---- * - CreateItems( targetSpecialCombo ) [ Add all items in the special combo ] * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarSpecialCombo = function() *************** *** 32,35 **** --- 29,37 ---- } + function FCKToolbarSpecialCombo_OnSelect( itemId, item ) + { + this.Command.Execute( itemId, item ) ; + } + FCKToolbarSpecialCombo.prototype.CreateInstance = function( parentToolbar ) { *************** *** 45,52 **** this._Combo.Command = this.Command ; ! this._Combo.OnSelect = function( itemId, item ) ! { ! this.Command.Execute( itemId, item ) ; ! } } --- 47,58 ---- this._Combo.Command = this.Command ; ! this._Combo.OnSelect = FCKToolbarSpecialCombo_OnSelect ; ! } ! ! function FCKToolbarSpecialCombo_RefreshActiveItems( combo, value ) ! { ! combo.DeselectAll() ; ! combo.SelectItem( value ) ; ! combo.SetLabelById( value ) ; } *************** *** 66,79 **** 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 --- 72,79 ---- eState = FCK_TRISTATE_ON ; ! if ( this.RefreshActiveItems ) ! this.RefreshActiveItems( this._Combo, sValue ) ; ! else ! FCKToolbarSpecialCombo_RefreshActiveItems( this._Combo, sValue ) ; } else Index: fcktoolbarbreak_gecko.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcktoolbarbreak_gecko.js 1 Sep 2005 18:15:40 -0000 1.1 --- fcktoolbarbreak_gecko.js 29 Sep 2005 19:49:17 -0000 1.2 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 14,23 **** * This is the Gecko specific implementation. * - * Version: 2.0 RC3 - * Modified: 2005-02-09 18:04:04 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarBreak = function() --- 14,20 ---- * This is the Gecko specific implementation. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKToolbarBreak = function() Index: fckpanel_gecko.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckpanel_gecko.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckpanel_gecko.js 1 Sep 2005 18:15:40 -0000 1.4 --- fckpanel_gecko.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** * FCKPanel Class: Creates and manages floating panels in Gecko Browsers. * - * Version: 2.0 RC3 - * Modified: 2005-02-23 18:56:41 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKPanel = function( parentWindow ) --- 12,18 ---- * FCKPanel Class: Creates and manages floating panels in Gecko Browsers. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ var FCKPanel = function( parentWindow ) *************** *** 29,34 **** 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 --- 26,31 ---- 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 *************** *** 41,45 **** break ; } ! this.Window = this.Window.parent ; } --- 38,42 ---- break ; } ! this.Window = this.Window.parent ; } *************** *** 49,53 **** FCKPanel.prototype.Create = function() { ! this._IFrame = this.Window.document.body.appendChild( this.Window.document.createElement('IFRAME') ) ; this._IFrame.src = 'about:blank' ; this._IFrame.frameBorder = '0'; --- 46,50 ---- FCKPanel.prototype.Create = function() { ! this._IFrame = this.Window.document.body.appendChild( this.Window.document.createElement('iframe') ) ; this._IFrame.src = 'about:blank' ; this._IFrame.frameBorder = '0'; *************** *** 59,63 **** this._IFrame.style.position = 'absolute'; this._IFrame.style.visibility = 'hidden' ; ! this._IFrame.IsFCKPanel = true ; this._IFrame.Panel = this ; --- 56,60 ---- this._IFrame.style.position = 'absolute'; this._IFrame.style.visibility = 'hidden' ; ! this._IFrame.IsFCKPanel = true ; this._IFrame.Panel = this ; *************** *** 99,111 **** var oPos = this.GetElementPosition( relElement ) ; ! panelX += oPos.X ; panelY += oPos.Y ; ! if ( panelX + this.OuterDiv.offsetWidth > this.Window.innerWidth ) { // The following line aligns the panel to the other side of the refElement. // panelX = oPos.X - ( this.PanelDiv.offsetWidth - relElement.offsetWidth ) ; ! panelX -= panelX + this.OuterDiv.offsetWidth - this.Window.innerWidth ; } --- 96,108 ---- var oPos = this.GetElementPosition( relElement ) ; ! panelX += oPos.X ; panelY += oPos.Y ; ! if ( panelX + this.OuterDiv.offsetWidth > this.Window.innerWidth ) { // The following line aligns the panel to the other side of the refElement. // panelX = oPos.X - ( this.PanelDiv.offsetWidth - relElement.offsetWidth ) ; ! panelX -= panelX + this.OuterDiv.offsetWidth - this.Window.innerWidth ; } *************** *** 118,130 **** 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) {} --- 115,127 ---- 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) {} *************** *** 134,138 **** } SetOnClickListener( window.top, FCKPanelEventHandlers.OnDocumentClick ) ; ! this._IFrame.width = this.OuterDiv.offsetWidth ; this._IFrame.height = this.OuterDiv.offsetHeight ; --- 131,135 ---- } SetOnClickListener( window.top, FCKPanelEventHandlers.OnDocumentClick ) ; ! this._IFrame.width = this.OuterDiv.offsetWidth ; this._IFrame.height = this.OuterDiv.offsetHeight ; *************** *** 146,150 **** // Initializes the Coordinates object that will be returned by the function. var c = { X:0, Y:0 } ; ! // Loop throw the offset chain. while ( el ) --- 143,147 ---- // Initializes the Coordinates object that will be returned by the function. var c = { X:0, Y:0 } ; ! // Loop throw the offset chain. while ( el ) *************** *** 152,156 **** c.X += el.offsetLeft ; c.Y += el.offsetTop ; ! if ( el.offsetParent == null && el.ownerDocument.defaultView != this.Window ) el = el.ownerDocument.defaultView.frameElement ; --- 149,153 ---- c.X += el.offsetLeft ; c.Y += el.offsetTop ; ! if ( el.offsetParent == null && el.ownerDocument.defaultView != this.Window ) el = el.ownerDocument.defaultView.frameElement ; *************** *** 158,162 **** el = el.offsetParent ; } ! // Return the Coordinates object return c ; --- 155,159 ---- el = el.offsetParent ; } ! // Return the Coordinates object return c ; *************** *** 178,182 **** { var oWindow = e.target.ownerDocument.defaultView ; ! if ( ! oWindow.IsFCKPanel ) { --- 175,179 ---- { var oWindow = e.target.ownerDocument.defaultView ; ! if ( ! oWindow.IsFCKPanel ) { *************** *** 186,193 **** 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 ) --- 183,190 ---- 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 ) *************** *** 197,203 **** } catch (e) {} ! for ( var i = 0 ; i < targetWindow.frames.length ; i++ ) ! RemoveOnClickListener( targetWindow.frames[i] ) ; } RemoveOnClickListener( window.top ) ; --- 194,200 ---- } catch (e) {} ! for ( var i = 0 ; i < targetWindow.frames.length ; i++ ) ! RemoveOnClickListener( targetWindow.frames[i] ) ; } RemoveOnClickListener( window.top ) ; Index: fckstyledef.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/_source/classes/fckstyledef.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckstyledef.js 1 Sep 2005 18:15:40 -0000 1.4 --- fckstyledef.js 29 Sep 2005 19:49:17 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: ************... [truncated message content] |