diff --git a/documentation/changelog.html b/documentation/changelog.html index fcd9123b84..3fbeb95a37 100755 --- a/documentation/changelog.html +++ b/documentation/changelog.html @@ -40,6 +40,7 @@
  • Corrected mailing functions, now they load the file mail.conf.php. Previously the file mail.conf.dist.php was to be loaded by mistake. (Feature #272)
  • Online editor: A new configuration option about editor's background has been proposed by Wofganag Schneider and it has been implemented. See http://www.chamilo.org/node/107 (Feature #347)
  • Online editor: IE proprietary commenting tags are desactivated before loading the edited text. This fix has been proposed by Hubert Borderiou. (Bug #573)
  • +
  • Online editor: Upgraded from FCKEditor 2.6.5 to FCKEditor 2.6.6, Build 25427 - Feature #626
  • Fixed bugs caused by the undefined constant REL_SYS_PATH and by the declared twice constant TABLE_MAIN_GROUP. Problems have been reporded by krikrizzz and Knightly. See the related forum topics http://www.chamilo.org/en/node/190 and http://www.chamilo.org/en/node/154 (Feature #347)
  • Fixed course copy table lp_item audio not copied. Reported by Henri Hedman (Bug #575)
  • Fixed Added an option to cancel prerequisites in a course (Learning path). Fixed by aboivin in http://www.chamilo.org/node/146
  • diff --git a/main/inc/lib/fckeditor/_documentation.html b/main/inc/lib/fckeditor/_documentation.html index 2c551b007d..464888cc00 100755 --- a/main/inc/lib/fckeditor/_documentation.html +++ b/main/inc/lib/fckeditor/_documentation.html @@ -1,7 +1,7 @@ - - - FCKeditor ChangeLog - What's New? - - - - -

    - FCKeditor ChangeLog - What's New?

    -

    - Version 2.6.5

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - See previous versions history

    - - + + + + + FCKeditor ChangeLog - What's New? + + + + +

    + FCKeditor ChangeLog - What's New?

    +

    + Version 2.6.6

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + See previous versions history

    + + diff --git a/main/inc/lib/fckeditor/_whatsnew_history.html b/main/inc/lib/fckeditor/_whatsnew_history.html index 195b1cfa99..59e2b621ca 100755 --- a/main/inc/lib/fckeditor/_whatsnew_history.html +++ b/main/inc/lib/fckeditor/_whatsnew_history.html @@ -1,4055 +1,4124 @@ - - - - - FCKeditor ChangeLog - What's New? - - - - -

    - FCKeditor ChangeLog - What's New?

    -

    - Version 2.6.4.1

    -

    - Fixed Bugs:

    - -

    - Version 2.6.4

    -

    - Fixed Bugs:

    - -

    - Version 2.6.4 Beta

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.6.3

    -

    - Fixed Bugs:

    - -

    - This version has been sponsored by Data Illusion - survey software solutions.

    -

    - Version 2.6.3 Beta

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.6.2

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.6.1

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.6

    -

    - No changes. The stabilization of the 2.6 RC was completed successfully, as expected.

    -

    - Version 2.6 RC

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.6 Beta 1

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.5.1

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.5

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.5 Beta

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - # This version has been partially sponsored - by the Council of Europe. -

    -

    - Version 2.4.3

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.4.2

    -

    - Fixed Bugs:

    - -

    - Version 2.4.1

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.4

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - * This version has been partially sponsored by Medical - Media Lab.

    -

    - Version 2.3.3

    -

    - New Features and Improvements:

    - -

    - Version 2.3.2

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.3.1

    -

    - Fixed Bugs:

    - -

    - Version 2.3

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - * This version has been partially sponsored by Footsteps - and Kentico.

    -

    - Version 2.3 Beta

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - * This version has been partially sponsored by Footsteps - and Kentico. -
    - ** This version has been partially sponsored by Nextide.

    -

    - Version 2.2

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Special thanks to - Alfonso Martinez, who have provided many patches and suggestions for the - following features / fixes present in this version. I encourage all you to - donate to Alfonso, as a way to say thanks for his nice open source approach. - Thanks Alfonso!. Check out his contributions:

    - -

    - * This version has been partially sponsored by - Alkacon Software.

    -

    - Version 2.1.1

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - * This version has been partially sponsored by - Acctive Software S.A..

    -

    - Version 2.1

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.0

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - * This version has been partially sponsored by - Infineon Technologies AG.
    - ** This version has been partially sponsored by - Visualsoft Web Solutions.
    - *** This version has been partially sponsored by - Web Crossing, Inc.

    -

    - Version 2.0 FC (Final Candidate)

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - * This version has been partially sponsored by the - Hamilton College.
    - ** This version has been partially sponsored by - Infineon Technologies AG.

    -

    - Version 2.0 RC3 (Release Candidate 3)

    -

    - New Features and Improvements:

    - -

    - Fixed Bugs:

    - -

    - Version 2.0 RC2 (Release Candidate 2)

    - -

    - Version 2.0 RC1 (Release Candidate 1)

    - -

    - Version 2.0 Beta 2

    - -

    - Version 2.0 Beta 1

    -

    - This is the first beta of the 2.x series. It brings a lot of new and important things. - Beta versions will be released until all features available on version 1.x will - be introduced in the 2.0.
    -
    - Note: As it is a beta, it is not yet completely developed. Future - versions can bring new features that can break backward compatibility with this - version. -

    - -

    - Version 1.6.1

    - -

    - * This version has been partially sponsored by Genuitec, - LLC.

    -

    - Version 1.6

    - -

    - * This version has been partially sponsored by Genuitec, - LLC.

    -

    - Version 1.5

    - -

    - Version 1.4

    - -

    - Version 1.3.1

    - -

    - Version 1.3

    - -

    - Version 1.2.4

    - -

    - Version 1.2.2

    - -

    - Version 1.2

    - -

    - Version 1.1

    - -

    - Version 1.0

    - -

    - Version 1.0 Final Candidate

    - -

    - Version 1.0 Release Candidate 1 (RC1)

    - -

    - Version 0.9.5 beta

    - -

    - Version 0.9.4 beta

    - - - + + + + + FCKeditor ChangeLog - What's New? + + + + +

    + FCKeditor ChangeLog - What's New?

    +

    + Version 2.6.5

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.6.4.1

    +

    + Fixed Bugs:

    + +

    + Version 2.6.4

    +

    + Fixed Bugs:

    + +

    + Version 2.6.4 Beta

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.6.3

    +

    + Fixed Bugs:

    + +

    + This version has been sponsored by Data Illusion + survey software solutions.

    +

    + Version 2.6.3 Beta

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.6.2

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.6.1

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.6

    +

    + No changes. The stabilization of the 2.6 RC was completed successfully, as expected.

    +

    + Version 2.6 RC

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.6 Beta 1

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.5.1

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.5

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.5 Beta

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + # This version has been partially sponsored + by the Council of Europe. +

    +

    + Version 2.4.3

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.4.2

    +

    + Fixed Bugs:

    + +

    + Version 2.4.1

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.4

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + * This version has been partially sponsored by Medical + Media Lab.

    +

    + Version 2.3.3

    +

    + New Features and Improvements:

    + +

    + Version 2.3.2

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.3.1

    +

    + Fixed Bugs:

    + +

    + Version 2.3

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + * This version has been partially sponsored by Footsteps + and Kentico.

    +

    + Version 2.3 Beta

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + * This version has been partially sponsored by Footsteps + and Kentico. +
    + ** This version has been partially sponsored by Nextide.

    +

    + Version 2.2

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Special thanks to + Alfonso Martinez, who have provided many patches and suggestions for the + following features / fixes present in this version. I encourage all you to + donate to Alfonso, as a way to say thanks for his nice open source approach. + Thanks Alfonso!. Check out his contributions:

    + +

    + * This version has been partially sponsored by + Alkacon Software.

    +

    + Version 2.1.1

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + * This version has been partially sponsored by + Acctive Software S.A..

    +

    + Version 2.1

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.0

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + * This version has been partially sponsored by + Infineon Technologies AG.
    + ** This version has been partially sponsored by + Visualsoft Web Solutions.
    + *** This version has been partially sponsored by + Web Crossing, Inc.

    +

    + Version 2.0 FC (Final Candidate)

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + * This version has been partially sponsored by the + Hamilton College.
    + ** This version has been partially sponsored by + Infineon Technologies AG.

    +

    + Version 2.0 RC3 (Release Candidate 3)

    +

    + New Features and Improvements:

    + +

    + Fixed Bugs:

    + +

    + Version 2.0 RC2 (Release Candidate 2)

    + +

    + Version 2.0 RC1 (Release Candidate 1)

    + +

    + Version 2.0 Beta 2

    + +

    + Version 2.0 Beta 1

    +

    + This is the first beta of the 2.x series. It brings a lot of new and important things. + Beta versions will be released until all features available on version 1.x will + be introduced in the 2.0.
    +
    + Note: As it is a beta, it is not yet completely developed. Future + versions can bring new features that can break backward compatibility with this + version. +

    + +

    + Version 1.6.1

    + +

    + * This version has been partially sponsored by Genuitec, + LLC.

    +

    + Version 1.6

    + +

    + * This version has been partially sponsored by Genuitec, + LLC.

    +

    + Version 1.5

    + +

    + Version 1.4

    + +

    + Version 1.3.1

    + +

    + Version 1.3

    + +

    + Version 1.2.4

    + +

    + Version 1.2.2

    + +

    + Version 1.2

    + +

    + Version 1.1

    + +

    + Version 1.0

    + +

    + Version 1.0 Final Candidate

    + +

    + Version 1.0 Release Candidate 1 (RC1)

    + +

    + Version 0.9.5 beta

    + +

    + Version 0.9.4 beta

    + + + diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckcontextmenu.js b/main/inc/lib/fckeditor/editor/_source/classes/fckcontextmenu.js index 916705537a..2132ac3006 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckcontextmenu.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckcontextmenu.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckdataprocessor.js b/main/inc/lib/fckeditor/editor/_source/classes/fckdataprocessor.js index 7dcf5e8e40..159b8f1e2a 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckdataprocessor.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckdataprocessor.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckdocumentfragment_gecko.js b/main/inc/lib/fckeditor/editor/_source/classes/fckdocumentfragment_gecko.js index fff2eeebfa..234a823a83 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckdocumentfragment_gecko.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckdocumentfragment_gecko.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckdocumentfragment_ie.js b/main/inc/lib/fckeditor/editor/_source/classes/fckdocumentfragment_ie.js index 21b7b9e93e..a54935c806 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckdocumentfragment_ie.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckdocumentfragment_ie.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange.js b/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange.js index ed5bf6b382..a1537da5f0 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange_gecko.js b/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange_gecko.js index defc29ed42..406e7fe894 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange_gecko.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange_gecko.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange_ie.js b/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange_ie.js index 0fa772cabe..cc0ea464ea 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange_ie.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckdomrange_ie.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckdomrangeiterator.js b/main/inc/lib/fckeditor/editor/_source/classes/fckdomrangeiterator.js index cfebd5a9ba..2ab03fbbfa 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckdomrangeiterator.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckdomrangeiterator.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckeditingarea.js b/main/inc/lib/fckeditor/editor/_source/classes/fckeditingarea.js index 2350b02647..def2941acd 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckeditingarea.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckeditingarea.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckelementpath.js b/main/inc/lib/fckeditor/editor/_source/classes/fckelementpath.js index 7c3a8172c1..d6432c80b8 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckelementpath.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckelementpath.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckenterkey.js b/main/inc/lib/fckeditor/editor/_source/classes/fckenterkey.js index 4c7a620b2e..016061c63f 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckenterkey.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckenterkey.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckevents.js b/main/inc/lib/fckeditor/editor/_source/classes/fckevents.js index 7369775ad9..a4d25acc15 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckevents.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckevents.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckhtmliterator.js b/main/inc/lib/fckeditor/editor/_source/classes/fckhtmliterator.js index d0720ae71d..69b2e3c82a 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckhtmliterator.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckhtmliterator.js @@ -1,142 +1,142 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * This class can be used to interate through nodes inside a range. - * - * During interation, the provided range can become invalid, due to document - * mutations, so CreateBookmark() used to restore it after processing, if - * needed. - */ - -var FCKHtmlIterator = function( source ) -{ - this._sourceHtml = source ; -} -FCKHtmlIterator.prototype = -{ - Next : function() - { - var sourceHtml = this._sourceHtml ; - if ( sourceHtml == null ) - return null ; - - var match = FCKRegexLib.HtmlTag.exec( sourceHtml ) ; - var isTag = false ; - var value = "" ; - if ( match ) - { - if ( match.index > 0 ) - { - value = sourceHtml.substr( 0, match.index ) ; - this._sourceHtml = sourceHtml.substr( match.index ) ; - } - else - { - isTag = true ; - value = match[0] ; - this._sourceHtml = sourceHtml.substr( match[0].length ) ; - } - } - else - { - value = sourceHtml ; - this._sourceHtml = null ; - } - return { 'isTag' : isTag, 'value' : value } ; - }, - - Each : function( func ) - { - var chunk ; - while ( ( chunk = this.Next() ) ) - func( chunk.isTag, chunk.value ) ; - } -} ; -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * This class can be used to interate through nodes inside a range. - * - * During interation, the provided range can become invalid, due to document - * mutations, so CreateBookmark() used to restore it after processing, if - * needed. - */ - -var FCKHtmlIterator = function( source ) -{ - this._sourceHtml = source ; -} -FCKHtmlIterator.prototype = -{ - Next : function() - { - var sourceHtml = this._sourceHtml ; - if ( sourceHtml == null ) - return null ; - - var match = FCKRegexLib.HtmlTag.exec( sourceHtml ) ; - var isTag = false ; - var value = "" ; - if ( match ) - { - if ( match.index > 0 ) - { - value = sourceHtml.substr( 0, match.index ) ; - this._sourceHtml = sourceHtml.substr( match.index ) ; - } - else - { - isTag = true ; - value = match[0] ; - this._sourceHtml = sourceHtml.substr( match[0].length ) ; - } - } - else - { - value = sourceHtml ; - this._sourceHtml = null ; - } - return { 'isTag' : isTag, 'value' : value } ; - }, - - Each : function( func ) - { - var chunk ; - while ( ( chunk = this.Next() ) ) - func( chunk.isTag, chunk.value ) ; - } -} ; +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2010 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * This class can be used to interate through nodes inside a range. + * + * During interation, the provided range can become invalid, due to document + * mutations, so CreateBookmark() used to restore it after processing, if + * needed. + */ + +var FCKHtmlIterator = function( source ) +{ + this._sourceHtml = source ; +} +FCKHtmlIterator.prototype = +{ + Next : function() + { + var sourceHtml = this._sourceHtml ; + if ( sourceHtml == null ) + return null ; + + var match = FCKRegexLib.HtmlTag.exec( sourceHtml ) ; + var isTag = false ; + var value = "" ; + if ( match ) + { + if ( match.index > 0 ) + { + value = sourceHtml.substr( 0, match.index ) ; + this._sourceHtml = sourceHtml.substr( match.index ) ; + } + else + { + isTag = true ; + value = match[0] ; + this._sourceHtml = sourceHtml.substr( match[0].length ) ; + } + } + else + { + value = sourceHtml ; + this._sourceHtml = null ; + } + return { 'isTag' : isTag, 'value' : value } ; + }, + + Each : function( func ) + { + var chunk ; + while ( ( chunk = this.Next() ) ) + func( chunk.isTag, chunk.value ) ; + } +} ; +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2010 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * This class can be used to interate through nodes inside a range. + * + * During interation, the provided range can become invalid, due to document + * mutations, so CreateBookmark() used to restore it after processing, if + * needed. + */ + +var FCKHtmlIterator = function( source ) +{ + this._sourceHtml = source ; +} +FCKHtmlIterator.prototype = +{ + Next : function() + { + var sourceHtml = this._sourceHtml ; + if ( sourceHtml == null ) + return null ; + + var match = FCKRegexLib.HtmlTag.exec( sourceHtml ) ; + var isTag = false ; + var value = "" ; + if ( match ) + { + if ( match.index > 0 ) + { + value = sourceHtml.substr( 0, match.index ) ; + this._sourceHtml = sourceHtml.substr( match.index ) ; + } + else + { + isTag = true ; + value = match[0] ; + this._sourceHtml = sourceHtml.substr( match[0].length ) ; + } + } + else + { + value = sourceHtml ; + this._sourceHtml = null ; + } + return { 'isTag' : isTag, 'value' : value } ; + }, + + Each : function( func ) + { + var chunk ; + while ( ( chunk = this.Next() ) ) + func( chunk.isTag, chunk.value ) ; + } +} ; diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckicon.js b/main/inc/lib/fckeditor/editor/_source/classes/fckicon.js index 57216935e4..6a92c82d81 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckicon.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckicon.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckiecleanup.js b/main/inc/lib/fckeditor/editor/_source/classes/fckiecleanup.js index c1ad453159..4aa63b6d49 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckiecleanup.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckiecleanup.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckimagepreloader.js b/main/inc/lib/fckeditor/editor/_source/classes/fckimagepreloader.js index b733b2f6c1..0d860fe2c4 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckimagepreloader.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckimagepreloader.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckkeystrokehandler.js b/main/inc/lib/fckeditor/editor/_source/classes/fckkeystrokehandler.js index a464940867..f1bf03aa34 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckkeystrokehandler.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckkeystrokehandler.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckmenublock.js b/main/inc/lib/fckeditor/editor/_source/classes/fckmenublock.js index 83524e2ecc..ac0639b6c9 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckmenublock.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckmenublock.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckmenublockpanel.js b/main/inc/lib/fckeditor/editor/_source/classes/fckmenublockpanel.js index 659b5864c2..f7ad6322de 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckmenublockpanel.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckmenublockpanel.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckmenuitem.js b/main/inc/lib/fckeditor/editor/_source/classes/fckmenuitem.js index c1c6b75c03..3412a9520b 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckmenuitem.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckmenuitem.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckpanel.js b/main/inc/lib/fckeditor/editor/_source/classes/fckpanel.js index 4353f4e291..90d0e60776 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckpanel.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckpanel.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckplugin.js b/main/inc/lib/fckeditor/editor/_source/classes/fckplugin.js index 8e6a616d11..df64c39292 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckplugin.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckplugin.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckspecialcombo.js b/main/inc/lib/fckeditor/editor/_source/classes/fckspecialcombo.js index a9b45c889d..b6c24d9fc7 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckspecialcombo.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckspecialcombo.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckstyle.js b/main/inc/lib/fckeditor/editor/_source/classes/fckstyle.js index f66dbac812..623b3777e9 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckstyle.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckstyle.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbar.js b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbar.js index 0ff9583236..98d3dbf117 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbar.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbar.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js index 21bc5c4848..b3138dbe09 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js index f98ed414fd..87fdf0496b 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbutton.js b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbutton.js index 7b4944ffd3..1c05f53668 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbutton.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbutton.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbuttonui.js b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbuttonui.js index 66a3d1b607..54412a8c3f 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbuttonui.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarbuttonui.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js index 1cc85e7a04..24043592df 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js index ab22654d1c..8b59d4f55b 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js index b755fb3d52..b4335d1445 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js index 1b95b904b9..254c012ad8 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js index 693386472d..0d8fc64af9 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js index 384175a9f4..5ed638c756 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckw3crange.js b/main/inc/lib/fckeditor/editor/_source/classes/fckw3crange.js index e3888bdeb4..983aeb36bc 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckw3crange.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckw3crange.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckxml.js b/main/inc/lib/fckeditor/editor/_source/classes/fckxml.js index b83bd9daee..8dd347f394 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckxml.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckxml.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckxml_gecko.js b/main/inc/lib/fckeditor/editor/_source/classes/fckxml_gecko.js index 7cec7443ef..41f9a08c0e 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckxml_gecko.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckxml_gecko.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/classes/fckxml_ie.js b/main/inc/lib/fckeditor/editor/_source/classes/fckxml_ie.js index 42535d44d8..d2ed951129 100755 --- a/main/inc/lib/fckeditor/editor/_source/classes/fckxml_ie.js +++ b/main/inc/lib/fckeditor/editor/_source/classes/fckxml_ie.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fck_othercommands.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fck_othercommands.js index 23d05cb42a..35a1039e48 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fck_othercommands.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fck_othercommands.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckblockquotecommand.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckblockquotecommand.js index ef561d2118..8214552b28 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckblockquotecommand.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckblockquotecommand.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckcorestylecommand.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckcorestylecommand.js index 726b5cc6a3..56de644d87 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckcorestylecommand.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckcorestylecommand.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckfitwindow.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckfitwindow.js index 1047e44b4e..8f0c1ecf5f 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckfitwindow.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckfitwindow.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckindentcommands.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckindentcommands.js index 8bc6d80fa0..b9affa8847 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckindentcommands.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckindentcommands.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckjustifycommands.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckjustifycommands.js index 48608c5dfb..e6ae524efd 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckjustifycommands.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckjustifycommands.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fcklistcommands.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fcklistcommands.js index 518001d5e3..fb775427c3 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fcklistcommands.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fcklistcommands.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fcknamedcommand.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fcknamedcommand.js index aa82a4b004..d94cf18a65 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fcknamedcommand.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fcknamedcommand.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckpasteplaintextcommand.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckpasteplaintextcommand.js index 3465e1bdcd..54e36ba682 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckpasteplaintextcommand.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckpasteplaintextcommand.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckpastewordcommand.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckpastewordcommand.js index ee715ca496..d4201a09cc 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckpastewordcommand.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckpastewordcommand.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckremoveformatcommand.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckremoveformatcommand.js index 6d1adbbfe0..be8d91d408 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckremoveformatcommand.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckremoveformatcommand.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckshowblocks.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckshowblocks.js index 71adbada31..3c773a7a67 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckshowblocks.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckshowblocks.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js index 0155710f6b..2a76d33782 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_ie.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_ie.js index 075a54362c..5b18bdedf2 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_ie.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_ie.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckstylecommand.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckstylecommand.js index 36a3463f99..008255c564 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fckstylecommand.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fckstylecommand.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fcktablecommand.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fcktablecommand.js index 6bf956e6b5..d2ffb5da41 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fcktablecommand.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fcktablecommand.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js b/main/inc/lib/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js index ad681a808b..659035e1d8 100755 --- a/main/inc/lib/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js +++ b/main/inc/lib/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/fckconstants.js b/main/inc/lib/fckeditor/editor/_source/fckconstants.js index 3bd38e5657..a6cee9fe23 100755 --- a/main/inc/lib/fckeditor/editor/_source/fckconstants.js +++ b/main/inc/lib/fckeditor/editor/_source/fckconstants.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/fckeditorapi.js b/main/inc/lib/fckeditor/editor/_source/fckeditorapi.js index 6ac84d9633..aea7a7bc2a 100755 --- a/main/inc/lib/fckeditor/editor/_source/fckeditorapi.js +++ b/main/inc/lib/fckeditor/editor/_source/fckeditorapi.js @@ -1,179 +1,179 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Create the FCKeditorAPI object that is available as a global object in - * the page where the editor is placed in. - */ - -var FCKeditorAPI ; - -function InitializeAPI() -{ - var oParentWindow = window.parent ; - - if ( !( FCKeditorAPI = oParentWindow.FCKeditorAPI ) ) - { - // Make the FCKeditorAPI object available in the parent window. Use - // eval so this core runs in the parent's scope and so it will still be - // available if the editor instance is removed ("Can't execute code - // from a freed script" error). - - // Note: we check the existence of oEditor.GetParentForm because some external - // code (like JSON) can extend the Object prototype and we get then extra oEditor - // objects that aren't really FCKeditor instances. - var sScript = - 'window.FCKeditorAPI = {' + - 'Version : "2.6.5",' + - 'VersionBuild : "23959",' + - 'Instances : window.FCKeditorAPI && window.FCKeditorAPI.Instances || {},' + - - 'GetInstance : function( name )' + - '{' + - 'return this.Instances[ name ];' + - '},' + - - '_FormSubmit : function()' + - '{' + - 'for ( var name in FCKeditorAPI.Instances )' + - '{' + - 'var oEditor = FCKeditorAPI.Instances[ name ] ;' + - 'if ( oEditor.GetParentForm && oEditor.GetParentForm() == this )' + - 'oEditor.UpdateLinkedField() ;' + - '}' + - 'this._FCKOriginalSubmit() ;' + - '},' + - - '_FunctionQueue : window.FCKeditorAPI && window.FCKeditorAPI._FunctionQueue || {' + - 'Functions : new Array(),' + - 'IsRunning : false,' + - - 'Add : function( f )' + - '{' + - 'this.Functions.push( f );' + - 'if ( !this.IsRunning )' + - 'this.StartNext();' + - '},' + - - 'StartNext : function()' + - '{' + - 'var aQueue = this.Functions ;' + - 'if ( aQueue.length > 0 )' + - '{' + - 'this.IsRunning = true;' + - 'aQueue[0].call();' + - '}' + - 'else ' + - 'this.IsRunning = false;' + - '},' + - - 'Remove : function( f )' + - '{' + - 'var aQueue = this.Functions;' + - 'var i = 0, fFunc;' + - 'while( (fFunc = aQueue[ i ]) )' + - '{' + - 'if ( fFunc == f )' + - 'aQueue.splice( i,1 );' + - 'i++ ;' + - '}' + - 'this.StartNext();' + - '}' + - '}' + - '}' ; - - // In IE, the "eval" function is not always available (it works with - // the JavaScript samples, but not with the ASP ones, for example). - // So, let's use the execScript instead. - if ( oParentWindow.execScript ) - oParentWindow.execScript( sScript, 'JavaScript' ) ; - else - { - if ( FCKBrowserInfo.IsGecko10 ) - { - // FF 1.0.4 gives an error with the request bellow. The - // following seams to work well. - eval.call( oParentWindow, sScript ) ; - } - else if( FCKBrowserInfo.IsAIR ) - { - FCKAdobeAIR.FCKeditorAPI_Evaluate( oParentWindow, sScript ) ; - } - else if ( FCKBrowserInfo.IsSafari ) - { - // oParentWindow.eval in Safari executes in the calling window - // environment, instead of the parent one. The following should - // make it work. - var oParentDocument = oParentWindow.document ; - var eScript = oParentDocument.createElement('script') ; - eScript.appendChild( oParentDocument.createTextNode( sScript ) ) ; - oParentDocument.documentElement.appendChild( eScript ) ; - } - else - oParentWindow.eval( sScript ) ; - } - - FCKeditorAPI = oParentWindow.FCKeditorAPI ; - - // The __Instances properly has been changed to the public Instances, - // but we should still have the "deprecated" version of it. - FCKeditorAPI.__Instances = FCKeditorAPI.Instances ; - } - - // Add the current instance to the FCKeditorAPI's instances collection. - FCKeditorAPI.Instances[ FCK.Name ] = FCK ; -} - -// Attach to the form onsubmit event and to the form.submit(). -function _AttachFormSubmitToAPI() -{ - // Get the linked field form. - var oForm = FCK.GetParentForm() ; - - if ( oForm ) - { - // Attach to the onsubmit event. - FCKTools.AddEventListener( oForm, 'submit', FCK.UpdateLinkedField ) ; - - // IE sees oForm.submit function as an 'object'. - if ( !oForm._FCKOriginalSubmit && ( typeof( oForm.submit ) == 'function' || ( !oForm.submit.tagName && !oForm.submit.length ) ) ) - { - // Save the original submit. - oForm._FCKOriginalSubmit = oForm.submit ; - - // Create our replacement for the submit. - oForm.submit = FCKeditorAPI._FormSubmit ; - } - } -} - -function FCKeditorAPI_Cleanup() -{ - if ( window.FCKConfig && FCKConfig.MsWebBrowserControlCompat - && !window.FCKUnloadFlag ) - return ; - delete FCKeditorAPI.Instances[ FCK.Name ] ; -} -function FCKeditorAPI_ConfirmCleanup() -{ - if ( window.FCKConfig && FCKConfig.MsWebBrowserControlCompat ) - window.FCKUnloadFlag = true ; -} -FCKTools.AddEventListener( window, 'unload', FCKeditorAPI_Cleanup ) ; -FCKTools.AddEventListener( window, 'beforeunload', FCKeditorAPI_ConfirmCleanup) ; +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2010 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Create the FCKeditorAPI object that is available as a global object in + * the page where the editor is placed in. + */ + +var FCKeditorAPI ; + +function InitializeAPI() +{ + var oParentWindow = window.parent ; + + if ( !( FCKeditorAPI = oParentWindow.FCKeditorAPI ) ) + { + // Make the FCKeditorAPI object available in the parent window. Use + // eval so this core runs in the parent's scope and so it will still be + // available if the editor instance is removed ("Can't execute code + // from a freed script" error). + + // Note: we check the existence of oEditor.GetParentForm because some external + // code (like JSON) can extend the Object prototype and we get then extra oEditor + // objects that aren't really FCKeditor instances. + var sScript = + 'window.FCKeditorAPI = {' + + 'Version : "2.6.6",' + + 'VersionBuild : "25427",' + + 'Instances : window.FCKeditorAPI && window.FCKeditorAPI.Instances || {},' + + + 'GetInstance : function( name )' + + '{' + + 'return this.Instances[ name ];' + + '},' + + + '_FormSubmit : function()' + + '{' + + 'for ( var name in FCKeditorAPI.Instances )' + + '{' + + 'var oEditor = FCKeditorAPI.Instances[ name ] ;' + + 'if ( oEditor.GetParentForm && oEditor.GetParentForm() == this )' + + 'oEditor.UpdateLinkedField() ;' + + '}' + + 'this._FCKOriginalSubmit() ;' + + '},' + + + '_FunctionQueue : window.FCKeditorAPI && window.FCKeditorAPI._FunctionQueue || {' + + 'Functions : new Array(),' + + 'IsRunning : false,' + + + 'Add : function( f )' + + '{' + + 'this.Functions.push( f );' + + 'if ( !this.IsRunning )' + + 'this.StartNext();' + + '},' + + + 'StartNext : function()' + + '{' + + 'var aQueue = this.Functions ;' + + 'if ( aQueue.length > 0 )' + + '{' + + 'this.IsRunning = true;' + + 'aQueue[0].call();' + + '}' + + 'else ' + + 'this.IsRunning = false;' + + '},' + + + 'Remove : function( f )' + + '{' + + 'var aQueue = this.Functions;' + + 'var i = 0, fFunc;' + + 'while( (fFunc = aQueue[ i ]) )' + + '{' + + 'if ( fFunc == f )' + + 'aQueue.splice( i,1 );' + + 'i++ ;' + + '}' + + 'this.StartNext();' + + '}' + + '}' + + '}' ; + + // In IE, the "eval" function is not always available (it works with + // the JavaScript samples, but not with the ASP ones, for example). + // So, let's use the execScript instead. + if ( oParentWindow.execScript ) + oParentWindow.execScript( sScript, 'JavaScript' ) ; + else + { + if ( FCKBrowserInfo.IsGecko10 ) + { + // FF 1.0.4 gives an error with the request bellow. The + // following seams to work well. + eval.call( oParentWindow, sScript ) ; + } + else if( FCKBrowserInfo.IsAIR ) + { + FCKAdobeAIR.FCKeditorAPI_Evaluate( oParentWindow, sScript ) ; + } + else if ( FCKBrowserInfo.IsSafari ) + { + // oParentWindow.eval in Safari executes in the calling window + // environment, instead of the parent one. The following should + // make it work. + var oParentDocument = oParentWindow.document ; + var eScript = oParentDocument.createElement('script') ; + eScript.appendChild( oParentDocument.createTextNode( sScript ) ) ; + oParentDocument.documentElement.appendChild( eScript ) ; + } + else + oParentWindow.eval( sScript ) ; + } + + FCKeditorAPI = oParentWindow.FCKeditorAPI ; + + // The __Instances properly has been changed to the public Instances, + // but we should still have the "deprecated" version of it. + FCKeditorAPI.__Instances = FCKeditorAPI.Instances ; + } + + // Add the current instance to the FCKeditorAPI's instances collection. + FCKeditorAPI.Instances[ FCK.Name ] = FCK ; +} + +// Attach to the form onsubmit event and to the form.submit(). +function _AttachFormSubmitToAPI() +{ + // Get the linked field form. + var oForm = FCK.GetParentForm() ; + + if ( oForm ) + { + // Attach to the onsubmit event. + FCKTools.AddEventListener( oForm, 'submit', FCK.UpdateLinkedField ) ; + + // IE sees oForm.submit function as an 'object'. + if ( !oForm._FCKOriginalSubmit && ( typeof( oForm.submit ) == 'function' || ( !oForm.submit.tagName && !oForm.submit.length ) ) ) + { + // Save the original submit. + oForm._FCKOriginalSubmit = oForm.submit ; + + // Create our replacement for the submit. + oForm.submit = FCKeditorAPI._FormSubmit ; + } + } +} + +function FCKeditorAPI_Cleanup() +{ + if ( window.FCKConfig && FCKConfig.MsWebBrowserControlCompat + && !window.FCKUnloadFlag ) + return ; + delete FCKeditorAPI.Instances[ FCK.Name ] ; +} +function FCKeditorAPI_ConfirmCleanup() +{ + if ( window.FCKConfig && FCKConfig.MsWebBrowserControlCompat ) + window.FCKUnloadFlag = true ; +} +FCKTools.AddEventListener( window, 'unload', FCKeditorAPI_Cleanup ) ; +FCKTools.AddEventListener( window, 'beforeunload', FCKeditorAPI_ConfirmCleanup) ; diff --git a/main/inc/lib/fckeditor/editor/_source/fckjscoreextensions.js b/main/inc/lib/fckeditor/editor/_source/fckjscoreextensions.js index b790ff2488..b335b64836 100755 --- a/main/inc/lib/fckeditor/editor/_source/fckjscoreextensions.js +++ b/main/inc/lib/fckeditor/editor/_source/fckjscoreextensions.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/fckscriptloader.js b/main/inc/lib/fckeditor/editor/_source/fckscriptloader.js index 1adae159bd..b3b84137b2 100755 --- a/main/inc/lib/fckeditor/editor/_source/fckscriptloader.js +++ b/main/inc/lib/fckeditor/editor/_source/fckscriptloader.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fck.js b/main/inc/lib/fckeditor/editor/_source/internals/fck.js index 95f02bc1c6..f3553d091e 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fck.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fck.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fck_contextmenu.js b/main/inc/lib/fckeditor/editor/_source/internals/fck_contextmenu.js index 166d4327ac..8a4ac9bfd0 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fck_contextmenu.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fck_contextmenu.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fck_gecko.js b/main/inc/lib/fckeditor/editor/_source/internals/fck_gecko.js index b858bd0dd3..3309822d70 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fck_gecko.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fck_gecko.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fck_ie.js b/main/inc/lib/fckeditor/editor/_source/internals/fck_ie.js index 4c88ae7a81..5370f96791 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fck_ie.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fck_ie.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckbrowserinfo.js b/main/inc/lib/fckeditor/editor/_source/internals/fckbrowserinfo.js index 6c29387b3f..5cd2662d14 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckbrowserinfo.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckbrowserinfo.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * @@ -58,4 +58,8 @@ var FCKBrowserInfo = browserInfo.IsGecko19 = ( geckoVersion > 1.8 ) ; } } + + if ( browserInfo.IsSafari ) + browserInfo.IsSafari3 = ( parseFloat( s.match( / applewebkit\/(\d+)/ )[1] ) < 526 ) ; + })(FCKBrowserInfo) ; diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckcodeformatter.js b/main/inc/lib/fckeditor/editor/_source/internals/fckcodeformatter.js index 0a3a1d2a39..bc823c35df 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckcodeformatter.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckcodeformatter.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckcommands.js b/main/inc/lib/fckeditor/editor/_source/internals/fckcommands.js index 3b3850a290..dda118fcf6 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckcommands.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckcommands.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckconfig.js b/main/inc/lib/fckeditor/editor/_source/internals/fckconfig.js index 9287630f0a..101018ed03 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckconfig.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckconfig.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckdebug.js b/main/inc/lib/fckeditor/editor/_source/internals/fckdebug.js index 5d6ed8d6d4..56bae2d66c 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckdebug.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckdebug.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckdebug_empty.js b/main/inc/lib/fckeditor/editor/_source/internals/fckdebug_empty.js index 56bc143b77..723cc9199b 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckdebug_empty.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckdebug_empty.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckdialog.js b/main/inc/lib/fckeditor/editor/_source/internals/fckdialog.js index 3a32153d60..9cf14e7b8e 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckdialog.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckdialog.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckdocumentprocessor.js b/main/inc/lib/fckeditor/editor/_source/internals/fckdocumentprocessor.js index c7dadac4c3..1ac01bccee 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckdocumentprocessor.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckdocumentprocessor.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckdomtools.js b/main/inc/lib/fckeditor/editor/_source/internals/fckdomtools.js index 046e940bcc..16f53e6485 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckdomtools.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckdomtools.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fcklanguagemanager.js b/main/inc/lib/fckeditor/editor/_source/internals/fcklanguagemanager.js index f269f67385..c440b037f2 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fcklanguagemanager.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fcklanguagemanager.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fcklisthandler.js b/main/inc/lib/fckeditor/editor/_source/internals/fcklisthandler.js index 14fa030071..8e33fdbc5e 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fcklisthandler.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fcklisthandler.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fcklistslib.js b/main/inc/lib/fckeditor/editor/_source/internals/fcklistslib.js index d38fba5687..7dc4ae0d15 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fcklistslib.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fcklistslib.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckplugins.js b/main/inc/lib/fckeditor/editor/_source/internals/fckplugins.js index e94990eaad..bbb814eea5 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckplugins.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckplugins.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckregexlib.js b/main/inc/lib/fckeditor/editor/_source/internals/fckregexlib.js index 810b2c09cc..b18237f7a8 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckregexlib.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckregexlib.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckscayt.js b/main/inc/lib/fckeditor/editor/_source/internals/fckscayt.js index cf77d01dc8..7f67916f4b 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckscayt.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckscayt.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckselection.js b/main/inc/lib/fckeditor/editor/_source/internals/fckselection.js index dd815d37b7..7196a3b987 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckselection.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckselection.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckselection_gecko.js b/main/inc/lib/fckeditor/editor/_source/internals/fckselection_gecko.js index e1e9d1567d..5dad5210f9 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckselection_gecko.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckselection_gecko.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckselection_ie.js b/main/inc/lib/fckeditor/editor/_source/internals/fckselection_ie.js index f1b915f779..d5edd2ff98 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckselection_ie.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckselection_ie.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckstyles.js b/main/inc/lib/fckeditor/editor/_source/internals/fckstyles.js index 1beca4f7c2..37a795fe56 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckstyles.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckstyles.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler.js b/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler.js index 93b12f0475..8f6d434d4d 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler_gecko.js b/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler_gecko.js index f32622ae94..70ec4145e9 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler_gecko.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler_gecko.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler_ie.js b/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler_ie.js index 6c2a44eb89..a8d0e62c95 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler_ie.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fcktablehandler_ie.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fcktoolbaritems.js b/main/inc/lib/fckeditor/editor/_source/internals/fcktoolbaritems.js index 2d0a24bc31..675db49816 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fcktoolbaritems.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fcktoolbaritems.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fcktoolbarset.js b/main/inc/lib/fckeditor/editor/_source/internals/fcktoolbarset.js index f1e68e19ad..02f178a618 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fcktoolbarset.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fcktoolbarset.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fcktools.js b/main/inc/lib/fckeditor/editor/_source/internals/fcktools.js index 5b4888fdfa..7adfbdbf19 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fcktools.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fcktools.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fcktools_gecko.js b/main/inc/lib/fckeditor/editor/_source/internals/fcktools_gecko.js index 98f6839c1d..e825830b3c 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fcktools_gecko.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fcktools_gecko.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fcktools_ie.js b/main/inc/lib/fckeditor/editor/_source/internals/fcktools_ie.js index dce37d77a1..47860f2975 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fcktools_ie.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fcktools_ie.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckundo.js b/main/inc/lib/fckeditor/editor/_source/internals/fckundo.js index eb9e10507e..812f3c29a9 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckundo.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckundo.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckurlparams.js b/main/inc/lib/fckeditor/editor/_source/internals/fckurlparams.js index 79b4c87a29..4efafed624 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckurlparams.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckurlparams.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml.js b/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml.js index 0144768e03..2e584fd440 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml_gecko.js b/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml_gecko.js index 2a38b468eb..cfb1732355 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml_gecko.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml_gecko.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * diff --git a/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml_ie.js b/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml_ie.js index 54c12599ff..e693da958f 100755 --- a/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml_ie.js +++ b/main/inc/lib/fckeditor/editor/_source/internals/fckxhtml_ie.js @@ -1,249 +1,255 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2009 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Defines the FCKXHtml object, responsible for the XHTML operations. - * IE specific. - */ - -FCKXHtml._GetMainXmlString = function() -{ - return this.MainNode.xml ; -} - -FCKXHtml._AppendAttributes = function( xmlNode, htmlNode, node, nodeName ) -{ - var aAttributes = htmlNode.attributes, - bHasStyle ; - - for ( var n = 0 ; n < aAttributes.length ; n++ ) - { - var oAttribute = aAttributes[n] ; - - if ( oAttribute.specified ) - { - var sAttName = oAttribute.nodeName.toLowerCase() ; - var sAttValue ; - - // Ignore any attribute starting with "_fck". - if ( sAttName.StartsWith( '_fck' ) ) - continue ; - // The following must be done because of a bug on IE regarding the style - // attribute. It returns "null" for the nodeValue. - else if ( sAttName == 'style' ) - { - // Just mark it to do it later in this function. - bHasStyle = true ; - continue ; - } - // There are two cases when the oAttribute.nodeValue must be used: - // - for the "class" attribute - // - for events attributes (on IE only). - else if ( sAttName == 'class' ) - { - sAttValue = oAttribute.nodeValue.replace( FCKRegexLib.FCK_Class, '' ) ; - if ( sAttValue.length == 0 ) - continue ; - } - else if ( sAttName.indexOf('on') == 0 ) - sAttValue = oAttribute.nodeValue ; - else if ( nodeName == 'body' && sAttName == 'contenteditable' ) - continue ; - // XHTML doens't support attribute minimization like "CHECKED". It must be transformed to checked="checked". - else if ( oAttribute.nodeValue === true ) - sAttValue = sAttName ; - else - { - // We must use getAttribute to get it exactly as it is defined. - // There are some rare cases that IE throws an error here, so we must try/catch. - try - { - sAttValue = htmlNode.getAttribute( sAttName, 2 ) ; - } - catch (e) {} - } - this._AppendAttribute( node, sAttName, sAttValue || oAttribute.nodeValue ) ; - } - } - - // IE loses the style attribute in JavaScript-created elements tags. (#2390) - if ( bHasStyle || htmlNode.style.cssText.length > 0 ) - { - var data = FCKTools.ProtectFormStyles( htmlNode ) ; - var sStyleValue = htmlNode.style.cssText.replace( FCKRegexLib.StyleProperties, FCKTools.ToLowerCase ) ; - FCKTools.RestoreFormStyles( htmlNode, data ) ; - this._AppendAttribute( node, 'style', sStyleValue ) ; - } -} - -/** - * Used to clean up HTML that has been processed FCKXHtml._AppendNode(). - * - * For objects corresponding to HTML elements, Internet Explorer will - * treat a property as if it were an attribute set on that element. - * - * http://msdn.microsoft.com/en-us/library/ms533026(VS.85).aspx#Accessing_Element_Pr - * - * FCKXHtml._AppendNode() sets the property _fckxhtmljob on node objects - * corresponding HTML elements to mark them as having been processed. - * Counting these properties as attributes will cripple style removal - * because FCK.Styles.RemoveFromSelection() will not remove an element - * as long as it still has attributes. - * - * refs #2156 and #2834 - */ - -FCKXHtml._RemoveXHtmlJobProperties = function ( node ) -{ - // Select only nodes of type ELEMENT_NODE - if (!node || !node.nodeType || node.nodeType != 1) - return ; - - // Clear the _fckhtmljob attribute. - if ( typeof node._fckxhtmljob !== 'undefined' ) - node.removeAttribute('_fckxhtmljob') ; - - // Recurse upon child nodes. - if ( node.hasChildNodes() ) - { - var childNodes = node.childNodes ; - for ( var i = childNodes.length - 1 ; i >= 0 ; i-- ) - FCKXHtml._RemoveXHtmlJobProperties( childNodes.item(i) ) ; - } -} - -// On very rare cases, IE is loosing the "align" attribute for DIV. (right align and apply bulleted list) -FCKXHtml.TagProcessors['div'] = function( node, htmlNode ) -{ - if ( htmlNode.align.length > 0 ) - FCKXHtml._AppendAttribute( node, 'align', htmlNode.align ) ; - - node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ; - - return node ; -} - -// IE automatically changes tags to . -FCKXHtml.TagProcessors['font'] = function( node, htmlNode ) -{ - if ( node.attributes.length == 0 ) - node = FCKXHtml.XML.createDocumentFragment() ; - - node = FCKXHtml._AppendChildNodes( node, htmlNode ) ; - - return node ; -} - -FCKXHtml.TagProcessors['form'] = function( node, htmlNode ) -{ - if ( htmlNode.acceptCharset && htmlNode.acceptCharset.length > 0 && htmlNode.acceptCharset != 'UNKNOWN' ) - FCKXHtml._AppendAttribute( node, 'accept-charset', htmlNode.acceptCharset ) ; - - // IE has a bug and htmlNode.attributes['name'].specified=false if there is - // no element with id="name" inside the form (#360 and SF-BUG-1155726). - var nameAtt = htmlNode.attributes['name'] ; - - if ( nameAtt && nameAtt.value.length > 0 ) - FCKXHtml._AppendAttribute( node, 'name', nameAtt.value ) ; - - node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ; - - return node ; -} - -// IE doens't see the value attribute as an attribute for the tag. -FCKXHtml.TagProcessors['input'] = function( node, htmlNode ) -{ - if ( htmlNode.name ) - FCKXHtml._AppendAttribute( node, 'name', htmlNode.name ) ; - - if ( htmlNode.value && !node.attributes.getNamedItem( 'value' ) ) - FCKXHtml._AppendAttribute( node, 'value', htmlNode.value ) ; - - if ( !node.attributes.getNamedItem( 'type' ) ) - FCKXHtml._AppendAttribute( node, 'type', 'text' ) ; - - return node ; -} - -FCKXHtml.TagProcessors['label'] = function( node, htmlNode ) -{ - if ( htmlNode.htmlFor.length > 0 ) - FCKXHtml._AppendAttribute( node, 'for', htmlNode.htmlFor ) ; - - node = FCKXHtml._AppendChildNodes( node, htmlNode ) ; - - return node ; -} - -// Fix behavior for IE, it doesn't read back the .name on newly created maps -FCKXHtml.TagProcessors['map'] = function( node, htmlNode ) -{ - if ( ! node.attributes.getNamedItem( 'name' ) ) - { - var name = htmlNode.name ; - if ( name ) - FCKXHtml._AppendAttribute( node, 'name', name ) ; - } - - node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ; - - return node ; -} - -FCKXHtml.TagProcessors['meta'] = function( node, htmlNode ) -{ - var oHttpEquiv = node.attributes.getNamedItem( 'http-equiv' ) ; - - if ( oHttpEquiv == null || oHttpEquiv.value.length == 0 ) - { - // Get the http-equiv value from the outerHTML. - var sHttpEquiv = htmlNode.outerHTML.match( FCKRegexLib.MetaHttpEquiv ) ; - - if ( sHttpEquiv ) - { - sHttpEquiv = sHttpEquiv[1] ; - FCKXHtml._AppendAttribute( node, 'http-equiv', sHttpEquiv ) ; - } - } - - return node ; -} - -// IE ignores the "SELECTED" attribute so we must add it manually. -FCKXHtml.TagProcessors['option'] = function( node, htmlNode ) -{ - if ( htmlNode.selected && !node.attributes.getNamedItem( 'selected' ) ) - FCKXHtml._AppendAttribute( node, 'selected', 'selected' ) ; - - node = FCKXHtml._AppendChildNodes( node, htmlNode ) ; - - return node ; -} - -// IE doens't hold the name attribute as an attribute for the