phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] news_admin/js/fckeditor/editor/_source/classes fckplu


From: skwashd
Subject: [Phpgroupware-cvs] news_admin/js/fckeditor/editor/_source/classes fckplugin.js, 1.2 fckpanel_ie.js, 1.2 fckspecialcombo.js, 1.2 fckstyledef.js, 1.2 fckstyledef_ie.js, 1.2 fckstyledef_gecko.js, 1.2 fckpanel_gecko.js, 1.2 fckevents.js, 1.2 fckcontextmenugroup.js, 1.2 fckcontextmenuitem.js, 1.2 fckcontextmenuseparator.js, 1.2 fckstylesloader.js, 1.2 fcktoolbar.js, 1.2 fcktoolbarstylecombo.js, 1.2 fcktoolbarspecialcombo.js, 1.2 fckxml_gecko.js, 1.2 fckxml_ie.js, 1.2 fcktoolbarpanelbutton.js, 1.2 fcktoolbarfontsizecombo.js, 1.2 fcktoolbarbreak_ie.js, 1.2 fcktoolbarbreak_gecko.js, 1.2 fcktoolbarbutton.js, 1.2 fcktoolbarfontformatcombo.js, 1.2 fcktoolbarfontscombo.js, 1.2
Date: Thu, 4 Aug 2005 05:54:00 +0200

Update of news_admin/js/fckeditor/editor/_source/classes

Modified Files:
     Branch: MAIN
            fckplugin.js lines: +1 -4
            fckpanel_ie.js lines: +6 -5
            fckspecialcombo.js lines: +27 -24
            fckstyledef.js lines: +1 -4
            fckstyledef_ie.js lines: +1 -4
            fckstyledef_gecko.js lines: +1 -4
            fckpanel_gecko.js lines: +2 -5
            fckevents.js lines: +8 -6
            fckcontextmenugroup.js lines: +1 -4
            fckcontextmenuitem.js lines: +15 -16
            fckcontextmenuseparator.js lines: +1 -4
            fckstylesloader.js lines: +1 -4
            fcktoolbar.js lines: +1 -5
            fcktoolbarstylecombo.js lines: +1 -4
            fcktoolbarspecialcombo.js lines: +16 -16
            fckxml_gecko.js lines: +9 -26
            fckxml_ie.js lines: +13 -30
            fcktoolbarpanelbutton.js lines: +22 -60
            fcktoolbarfontsizecombo.js lines: +1 -4
            fcktoolbarbreak_ie.js lines: +1 -4
            fcktoolbarbreak_gecko.js lines: +1 -4
            fcktoolbarbutton.js lines: +55 -55
            fcktoolbarfontformatcombo.js lines: +1 -4
            fcktoolbarfontscombo.js lines: +1 -4

Log Message:
new newsletter builder, updated FCK and a few other things

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckplugin.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fckplugin.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckplugin.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckplugin.js:1.1     Tue May 
24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckplugin.js Thu Aug  4 
03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -10,9 +10,6 @@
  *
  * File Name: fckplugin.js
  *     FCKPlugin Class: Represents a single plugin.
- *
- * Version:  2.0 RC3
- * Modified: 2005-01-19 17:27:15
  *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckpanel_ie.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fckpanel_ie.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckpanel_ie.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckpanel_ie.js:1.1   Tue May 
24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckpanel_ie.js       Thu Aug 
 4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -11,9 +11,6 @@
  * File Name: fckpanel_ie.js
  *     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 (address@hidden)
  */
@@ -23,6 +20,8 @@
        this.Window = parentWindow ? parentWindow : window ;
 }

+function FCKPanel_OnContextMenu() { return false ; }
+
 FCKPanel.prototype.Create = function()
 {
        // Create the Popup that will hold the panel.
@@ -30,7 +29,9 @@

        this.Document = this._Popup.document ;

-       this.Document.oncontextmenu = function() { return false ; }
+       aCleanupDocs[ aCleanupDocs.length ] = this.Document ;
+
+       this.Document.oncontextmenu = FCKPanel_OnContextMenu ;

        if ( this.StyleSheet )
                FCKTools.AppendStyleSheet( this.Document, this.StyleSheet ) ;

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckspecialcombo.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fckspecialcombo.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckspecialcombo.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckspecialcombo.js:1.1       
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckspecialcombo.js   Thu Aug 
 4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -11,9 +11,6 @@
  * File Name: fckspecialcombo.js
  *     FCKSpecialCombo Class: represents a special combo.
  *
- * Version:  2.0 RC3
- * Modified: 2005-02-23 18:56:39
- *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)
  */
@@ -40,28 +37,17 @@
        this._ItemsHolderEl = 
this._Panel.PanelDiv.getElementsByTagName('TD')[0] ;
 }

-FCKSpecialCombo.prototype.AddItem = function( id, html, label )
-{
-       // <div class="SC_Item" onmouseover="this.className='SC_Item 
SC_ItemOver';" onmouseout="this.className='SC_Item';"><b>Bold 1</b></div>
-       var oDiv = this._ItemsHolderEl.appendChild( 
this._Panel.Document.createElement( 'DIV' ) ) ;
-       oDiv.className = oDiv.originalClass = 'SC_Item' ;
-       oDiv.innerHTML = html ;
-       oDiv.FCKItemID = id ;
-       oDiv.FCKItemLabel = label ? label : id ;
-       oDiv.FCKSpecialCombo = this ;
-       oDiv.Selected = false ;
-
-       oDiv.onmouseover = function()
+function FCKSpecialCombo_ItemOnMouseOver()
        {
                this.className += ' SC_ItemOver' ;
        }

-       oDiv.onmouseout = function()
+function FCKSpecialCombo_ItemOnMouseOut()
        {
                this.className = this.originalClass ;
        }

-       oDiv.onclick = function()
+function FCKSpecialCombo_ItemOnClick()
        {
                this.FCKSpecialCombo._Panel.Hide() ;

@@ -71,6 +57,21 @@
                        this.FCKSpecialCombo.OnSelect( this.FCKItemID, this ) ;
        }

+FCKSpecialCombo.prototype.AddItem = function( id, html, label )
+{
+       // <div class="SC_Item" onmouseover="this.className='SC_Item 
SC_ItemOver';" onmouseout="this.className='SC_Item';"><b>Bold 1</b></div>
+       var oDiv = this._ItemsHolderEl.appendChild( 
this._Panel.Document.createElement( 'DIV' ) ) ;
+       oDiv.className = oDiv.originalClass = 'SC_Item' ;
+       oDiv.innerHTML = html ;
+       oDiv.FCKItemID = id ;
+       oDiv.FCKItemLabel = label ? label : id ;
+       oDiv.FCKSpecialCombo = this ;
+       oDiv.Selected = false ;
+
+       oDiv.onmouseover        = FCKSpecialCombo_ItemOnMouseOver ;
+       oDiv.onmouseout         = FCKSpecialCombo_ItemOnMouseOut ;
+       oDiv.onclick            = FCKSpecialCombo_ItemOnClick ;
+
        this.Items[ id.toString().toLowerCase() ] = oDiv ;

        return oDiv ;
@@ -99,8 +100,6 @@

 FCKSpecialCombo.prototype.SetLabelById = function( id )
 {
-       FCKDebug.Output( this.Caption + ': ' + id, '#0000FF' ) ;
-
        id = id ? id.toString().toLowerCase() : '' ;

        var oDiv = this.Items[ id ] ;
@@ -151,18 +150,23 @@

        oField.SpecialCombo = this ;

-       oField.onmouseover = function()
+       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' ;
        }

-       oField.onmouseout = function()
+function FCKSpecialCombo_OnMouseOut()
        {
                this.className='SC_Field' ;
        }

-       oField.onclick = function( e )
+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.
@@ -192,7 +196,6 @@

                return false ;
        }
-}

 /*
 Sample Combo Field HTML output:

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckstyledef.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fckstyledef.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckstyledef.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckstyledef.js:1.1   Tue May 
24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckstyledef.js       Thu Aug 
 4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -10,9 +10,6 @@
  *
  * File Name: fckstyledef.js
  *     FCKStyleDef Class: represents a single stylke definition.
- *
- * Version:  2.0 RC3
- * Modified: 2004-11-22 11:09:42
  *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckstyledef_ie.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fckstyledef_ie.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckstyledef_ie.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckstyledef_ie.js:1.1        
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckstyledef_ie.js    Thu Aug 
 4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -10,9 +10,6 @@
  *
  * File Name: fckstyledef_ie.js
  *     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 (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckstyledef_gecko.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fckstyledef_gecko.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckstyledef_gecko.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckstyledef_gecko.js:1.1     
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckstyledef_gecko.js Thu Aug 
 4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -10,9 +10,6 @@
  *
  * File Name: fckstyledef_gecko.js
  *     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 (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckpanel_gecko.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fckpanel_gecko.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckpanel_gecko.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckpanel_gecko.js:1.1        
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckpanel_gecko.js    Thu Aug 
 4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -11,9 +11,6 @@
  * File Name: fckpanel_gecko.js
  *     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 (address@hidden)
  */
@@ -48,7 +45,7 @@

 FCKPanel.prototype.Create = function()
 {
-       this._IFrame = this.Window.document.body.appendChild( 
this.Window.document.createElement('IFRAME') ) ;
+       this._IFrame = this.Window.document.body.appendChild( 
this.Window.document.createElement('iframe') ) ;
        this._IFrame.src = 'about:blank' ;
     this._IFrame.frameBorder           = '0';
     this._IFrame.scrolling                     = 'no' ;

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckevents.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fckevents.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckevents.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckevents.js:1.1     Tue May 
24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckevents.js Thu Aug  4 
03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -11,14 +11,15 @@
  * File Name: fckevents.js
  *     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 (address@hidden)
  */

-var FCKEvents = function( eventsOwner )
+var FCKEvents ;
+
+if ( !( FCKEvents = NS.FCKEvents ) )
+{
+       FCKEvents = NS.FCKEvents = function( eventsOwner )
 {
        this.Owner = eventsOwner ;
        this.RegisteredEvents = new Object() ;
@@ -39,8 +40,9 @@
        if ( oCalls )
        {
                for ( var i = 0 ; i < oCalls.length ; i++ )
-                       bReturnValue = ( oCalls[ i ]( params ) && bReturnValue 
) ;
+                               bReturnValue = ( oCalls[ i ]( this.Owner, 
params ) && bReturnValue ) ;
        }

        return bReturnValue ;
+}
 }

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckcontextmenugroup.js
diff -u 
news_admin/js/fckeditor/editor/_source/classes/fckcontextmenugroup.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckcontextmenugroup.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckcontextmenugroup.js:1.1   
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckcontextmenugroup.js       
Thu Aug  4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -11,9 +11,6 @@
  * File Name: fckcontextmenugroup.js
  *     FCKContextMenuGroup Class: represents a group of items in the context
  *     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 (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckcontextmenuitem.js
diff -u 
news_admin/js/fckeditor/editor/_source/classes/fckcontextmenuitem.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckcontextmenuitem.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckcontextmenuitem.js:1.1    
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckcontextmenuitem.js        
Thu Aug  4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -11,9 +11,6 @@
  * File Name: fckcontextmenuitem.js
  *     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 (address@hidden)
  */
@@ -26,28 +23,19 @@
        this.HasIcon            = hasIcon ? true : false ;
 }

-FCKContextMenuItem.prototype.CreateTableRow = function( targetTable )
-{
-       // Creates the <TR> element.
-       this._Row = targetTable.insertRow(-1) ;
-       this._Row.className = 'CM_Disabled' ;
-       this._Row.FCKContextMenuItem = this ;
-
-       // Sets the mouse over event.
-       this._Row.onmouseover = function()
+function FCKContextMenuItem_OnMouseOver()
        {
                if ( this.className != 'CM_Disabled' )
                        this.className = 'CM_Over' ;
        }

-       // Sets the mouse out event.
-       this._Row.onmouseout = function()
+function FCKContextMenuItem_OnMouseOut()
        {
                if ( this.className != 'CM_Disabled' )
                        this.className = 'CM_Option' ;
        }

-       this._Row.onclick = function()
+function FCKContextMenuItem_OnClick()
        {
                if ( this.className != 'CM_Disabled' )
                {
@@ -56,6 +44,17 @@
                }
                return false ;
        }
+
+FCKContextMenuItem.prototype.CreateTableRow = function( targetTable )
+{
+       // Creates the <TR> element.
+       this._Row = targetTable.insertRow(-1) ;
+       this._Row.className = 'CM_Disabled' ;
+       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) ;
        oCell.className = 'CM_Icon' ;

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckcontextmenuseparator.js
diff -u 
news_admin/js/fckeditor/editor/_source/classes/fckcontextmenuseparator.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckcontextmenuseparator.js:1.2
--- 
news_admin/js/fckeditor/editor/_source/classes/fckcontextmenuseparator.js:1.1   
    Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckcontextmenuseparator.js   
Thu Aug  4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -10,9 +10,6 @@
  *
  * File Name: fckcontextmenuseparator.js
  *     FCKContextMenuSeparator Class: represents a separator in the toolbar.
- *
- * Version:  2.0 RC3
- * Modified: 2004-05-31 23:07:47
  *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckstylesloader.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fckstylesloader.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckstylesloader.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckstylesloader.js:1.1       
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckstylesloader.js   Thu Aug 
 4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -11,9 +11,6 @@
  * File Name: fckstylesloader.js
  *     FCKStylesLoader Class: this class define objects that are responsible
  *     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 (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fcktoolbar.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fcktoolbar.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbar.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fcktoolbar.js:1.1    Tue May 
24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fcktoolbar.js        Thu Aug 
 4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -12,9 +12,6 @@
  *     FCKToolbar Class: represents a toolbar. A toolbar is not the complete
  *     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 (address@hidden)
  */
@@ -63,4 +60,3 @@
        oCell.className = 'TB_End' ;
        oCell.innerHTML = '<img src="' + FCKConfig.SkinPath + 
'images/toolbar.end.gif" width="12" height="21" style="VISIBILITY: hidden" 
onload="this.style.visibility = \'\';" unselectable="on">' ;
 }
-

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js
diff -u 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js:1.1  
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js      
Thu Aug  4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -10,9 +10,6 @@
  *
  * File Name: fcktoolbarstylecombo.js
  *     FCKToolbarPanelButton Class: Handles the Fonts combo selector.
- *
- * Version:  2.0 RC3
- * Modified: 2004-12-31 15:04:31
  *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js
diff -u 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js:1.2
--- 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js:1.1    
    Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js    
Thu Aug  4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -18,9 +18,6 @@
  *             - Method:       GetLabel()                                      
                [ Returns the label ]
  *             -                       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 (address@hidden)
  */
@@ -31,6 +28,11 @@
        this.ContextSensitive   = true ;
 }

+function FCKToolbarSpecialCombo_OnSelect( itemId, item )
+{
+       this.Command.Execute( itemId, item ) ;
+}
+
 FCKToolbarSpecialCombo.prototype.CreateInstance = function( parentToolbar )
 {
        this._Combo = new FCKSpecialCombo( this.GetLabel() ) ;
@@ -44,10 +46,14 @@

        this._Combo.Command = this.Command ;

-       this._Combo.OnSelect = function( itemId, item )
-       {
-               this.Command.Execute( itemId, item ) ;
+       this._Combo.OnSelect = FCKToolbarSpecialCombo_OnSelect ;
        }
+
+function FCKToolbarSpecialCombo_RefreshActiveItems( combo, value )
+{
+       combo.DeselectAll() ;
+       combo.SelectItem( value ) ;
+       combo.SetLabelById( value ) ;
 }

 FCKToolbarSpecialCombo.prototype.RefreshState = function()
@@ -65,16 +71,10 @@
                {
                        eState = FCK_TRISTATE_ON ;

-                       if ( !this.RefreshActiveItems )
-                       {
-                               this.RefreshActiveItems = function( combo, 
value )
-                               {
-                                       this._Combo.DeselectAll() ;
-                                       this._Combo.SelectItem( value ) ;
-                                       this._Combo.SetLabelById( value ) ;
-                               }
-                       }
+                       if ( this.RefreshActiveItems )
                        this.RefreshActiveItems( this._Combo, sValue ) ;
+                       else
+                               FCKToolbarSpecialCombo_RefreshActiveItems( 
this._Combo, sValue ) ;
                }
                else
                        eState = FCK_TRISTATE_DISABLED ;

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckxml_gecko.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fckxml_gecko.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckxml_gecko.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckxml_gecko.js:1.1  Tue May 
24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckxml_gecko.js      Thu Aug 
 4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -11,42 +11,25 @@
  * File Name: fckxml_gecko.js
  *     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 (address@hidden)
  */

-var FCKXml = function()
+var FCKXml ;
+
+if ( !( FCKXml = NS.FCKXml ) )
+{
+       FCKXml = NS.FCKXml = function()
 {}

-FCKXml.prototype.LoadUrl = function( urlToCall, asyncFunctionPointer )
+       FCKXml.prototype.LoadUrl = function( urlToCall )
 {
        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.open( "GET", urlToCall, false ) ;
        oXmlHttp.send( null ) ;

-       if ( ! bAsync )
-       {
                if ( oXmlHttp.status == 200 )
                        this.DOMDocument = oXmlHttp.responseXML ;
                else if ( oXmlHttp.status == 0 && oXmlHttp.readyState == 4 )
@@ -54,7 +37,6 @@
                else
                        alert( 'Error loading "' + urlToCall + '"' ) ;
        }
-}

 FCKXml.prototype.SelectNodes = function( xpath, contextNode )
 {
@@ -84,3 +66,4 @@
        else
                return null ;
 }
+}
\ No newline at end of file

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fckxml_ie.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fckxml_ie.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fckxml_ie.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fckxml_ie.js:1.1     Tue May 
24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fckxml_ie.js Thu Aug  4 
03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -12,55 +12,37 @@
  *     FCKXml Class: class to load and manipulate XML files.
  *     (IE specific implementation)
  *
- * Version:  2.0 RC3
- * Modified: 2005-02-27 22:15:31
- *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)
  */

-var FCKXml = function()
-{}
+var FCKXml ;

-FCKXml.prototype.LoadUrl = function( urlToCall, asyncFunctionPointer )
+if ( !( FCKXml = NS.FCKXml ) )
 {
-       var oFCKXml = this ;
-
-       var bAsync = ( typeof(asyncFunctionPointer) == 'function' ) ;
+       FCKXml = NS.FCKXml = function()
+       {}

+       FCKXml.prototype.LoadUrl = function( urlToCall )
+       {
        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.open( "GET", urlToCall, false ) ;

        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 ) ;
+                       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 )
 {
@@ -77,3 +59,4 @@
        else
                return this.DOMDocument.selectSingleNode( xpath ) ;
 }
+}
\ No newline at end of file

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js
diff -u 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js:1.1 
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js     
Thu Aug  4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -12,9 +12,6 @@
  *     FCKToolbarPanelButton Class: represents a special button in the toolbar
  *     that shows a panel when pressed.
  *
- * Version:  2.0 RC3
- * Modified: 2005-01-10 15:28:31
- *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)
  */
@@ -28,41 +25,7 @@
        this.State              = FCK_UNKNOWN ;
 }

-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' ;
-
-       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 )
+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.
@@ -72,39 +35,38 @@
                        FCKPanelEventHandlers.OnDocumentClick( e ) ;
                }

-               if ( this.FCKToolbarButton.State != FCK_TRISTATE_DISABLED )
+       if ( this.State != FCK_TRISTATE_DISABLED )
                {
-                       this.FCKToolbarButton.Command.Execute(0, 
this.FCKToolbarButton.DOMDiv.offsetHeight, this.FCKToolbarButton.DOMDiv) ;
-//                     this.FCKToolbarButton.HandleOnClick( 
this.FCKToolbarButton, e ) ;
+               this.Command.Execute(0, this.DOMDiv.offsetHeight, this.DOMDiv) ;
+//                     this.FCKToolbarButton.HandleOnClick( this, e ) ;
                }

                return false ;
        }

-       // Gets the correct CSS class to use for the specified style (param).
-       var sClass ;
-       switch ( this.Style )
+FCKToolbarPanelButton.prototype.CreateInstance = function( parentToolbar )
        {
-               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 = 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="' + 
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>' ;

-       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>' +
+       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) ;
        oCell.appendChild( this.DOMDiv ) ;

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js
diff -u 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js:1.2
--- 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js:1.1   
    Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js   
Thu Aug  4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -10,9 +10,6 @@
  *
  * File Name: fcktoolbarfontsizecombo.js
  *     FCKToolbarPanelButton Class: Handles the Fonts combo selector.
- *
- * Version:  2.0 RC3
- * Modified: 2004-11-19 07:50:29
  *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js
diff -u 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js:1.1    
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js        
Thu Aug  4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -12,9 +12,6 @@
  *     FCKToolbarBreak Class: breaks the toolbars.
  *     It makes it possible to force the toolbar to brak to a new line.
  *     This is the IE specific implementation.
- *
- * Version:  2.0 RC3
- * Modified: 2005-02-09 18:07:44
  *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js
diff -u 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js:1.1 
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js     
Thu Aug  4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -12,9 +12,6 @@
  *     FCKToolbarBreak Class: breaks the toolbars.
  *     It makes it possible to force the toolbar to brak to a new line.
  *     This is the Gecko specific implementation.
- *
- * Version:  2.0 RC3
- * Modified: 2005-02-09 18:04:04
  *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbutton.js
diff -u news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbutton.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbutton.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbutton.js:1.1      
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fcktoolbarbutton.js  Thu Aug 
 4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -11,9 +11,6 @@
  * File Name: fcktoolbarbutton.js
  *     FCKToolbarButton Class: represents a button in the toolbar.
  *
- * Version:  2.0 RC3
- * Modified: 2005-01-18 11:07:28
- *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)
  */
@@ -32,67 +29,26 @@

 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' ;
-               }
-       }
+       var sHtml =
+               '<table title="' + this.Tooltip + '" cellspacing="0" 
cellpadding="0" border="0" unselectable="on">' +
+                       '<tr>' ;

-       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 ;
-       }
+       if ( this.Style != FCK_TOOLBARITEM_ONLYTEXT )
+               sHtml += '<td class="TB_Icon" unselectable="on"><img src="' + 
this.IconPath + '" width="21" height="21" unselectable="on"></td>' ;

-       // 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 ;
-       }
+       if ( this.Style != FCK_TOOLBARITEM_ONLYICON )
+               sHtml += '<td class="TB_Text" unselectable="on" nowrap>' + 
this.Label + '</td>' ;

-       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>' +
+       sHtml +=
                        '</tr>' +
                '</table>' ;

+       this.DOMDiv.innerHTML = sHtml ;

        var oCell = parentToolbar.DOMRow.insertCell(-1) ;
        oCell.appendChild( this.DOMDiv ) ;
@@ -124,16 +80,57 @@
        {
                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.DOMDiv.className = 'TB_Button_Disabled' ;
+                       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()
 {
        this.RefreshState() ;
@@ -143,4 +140,7 @@
 {
        this.State = FCK_TRISTATE_DISABLED ;
        this.DOMDiv.className = 'TB_Button_Disabled' ;
+       this.DOMDiv.onmouseover = null ;
+       this.DOMDiv.onmouseout  = null ;
+       this.DOMDiv.onclick             = null ;
 }

====================================================
Index: 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js
diff -u 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js:1.2
--- 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js:1.1 
    Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js 
Thu Aug  4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -10,9 +10,6 @@
  *
  * File Name: fcktoolbarfontformatcombo.js
  *     FCKToolbarPanelButton Class: Handles the Fonts combo selector.
- *
- * Version:  2.0 RC3
- * Modified: 2004-12-05 22:25:20
  *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)

====================================================
Index: news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js
diff -u 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js:1.1 
news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js:1.2
--- news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js:1.1  
Tue May 24 14:32:53 2005
+++ news_admin/js/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js      
Thu Aug  4 03:54:31 2005
@@ -1,6 +1,6 @@
 /*
  * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  *
  * Licensed under the terms of the GNU Lesser General Public License:
  *             http://www.opensource.org/licenses/lgpl-license.php
@@ -10,9 +10,6 @@
  *
  * File Name: fcktoolbarfontscombo.js
  *     FCKToolbarPanelButton Class: Handles the Fonts combo selector.
- *
- * Version:  2.0 RC3
- * Modified: 2004-11-19 07:50:38
  *
  * File Authors:
  *             Frederico Caldeira Knabben (address@hidden)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]