Index: lams_central/web/fckeditor/fckeditor.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/Attic/fckeditor.js,v diff -u -r1.5 -r1.6 --- lams_central/web/fckeditor/fckeditor.js 27 Jun 2006 03:16:53 -0000 1.5 +++ lams_central/web/fckeditor/fckeditor.js 16 Aug 2006 06:05:58 -0000 1.6 @@ -1,6 +1,6 @@ -/* +/* * FCKeditor - The text editor for internet - * Copyright (C) 2003-2005 Frederico Caldeira Knabben + * Copyright (C) 2003-2006 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php @@ -28,7 +28,7 @@ this.InstanceName = instanceName ; this.Width = width || '100%' ; this.Height = height || '200' ; - this.ToolbarSet = toolbarSet || 'Lams_Toolbar' ; + this.ToolbarSet = toolbarSet || 'Default' ; this.Value = value || '' ; this.BasePath = '/fckeditor/' ; this.CheckBrowser = true ; @@ -42,6 +42,9 @@ this.OnError = null ; // function( source, errorNumber, errorDescription ) } +FCKeditor.prototype.Version = '2.3.1' ; +FCKeditor.prototype.VersionBuild = '1062' ; + FCKeditor.prototype.Create = function() { // Check for errors @@ -128,7 +131,7 @@ var sLink = this.BasePath + 'editor/' + sFile + '?InstanceName=' + this.InstanceName ; if (this.ToolbarSet) sLink += '&Toolbar=' + this.ToolbarSet ; - return '' ; + return '' ; } FCKeditor.prototype._IsCompatibleBrowser = function() @@ -141,19 +144,15 @@ var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ; return ( sBrowserVersion >= 5.5 ) ; } - - // Gecko - if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 ) + + // Gecko (Opera 9 tries to behave like Gecko at this point). + if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 && !( typeof(opera) == 'object' && opera.postError ) ) return true ; - + // Opera - if ( this.EnableOpera ) - { - var aMatch = sAgent.match( /^opera\/(\d+\.\d+)/ ) ; - if ( aMatch && aMatch[1] >= 9.0 ) + if ( this.EnableOpera && navigator.appName == 'Opera' && parseInt( navigator.appVersion ) >= 9 ) return true ; - } - + // Safari if ( this.EnableSafari && sAgent.indexOf( 'safari' ) != -1 ) return ( sAgent.match( /safari\/(\d+)/ )[1] >= 312 ) ; // Build must be at least 312 (1.3)