rem: 'Version : "2.4",' + 'VersionBuild : "1148",' + 
add: 'Version : "2.4.1",' + 'VersionBuild : "14797",' + 
context: 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).		var sScript = 			'var FCKeditorAPI = {' +				'Version : "2.4",' +				'VersionBuild : "1148",' +				'__Instances : new Object(),' +								'GetInstance : function( name )' +				'{' +					'return this.__Instances[ name ];' +				'},' +								'_FormSubmit : function()' +				'{' +					'for ( var name in FCKeditorAPI.__Instances )' +					'{' +						'var oEditor = FCKeditorAPI.__Instances[ name ] ;' +						'if ( oEditor.GetParentForm() == this )' +							'oEditor.UpdateLinkedField() ;' +					'}' +					'this._FCKOriginalSubmit() ;' +				'},' +								'_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.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 ;	}	// Add the current instance to the FCKeditorAPI's instances collection.	FCKeditorAPI.__Instances[ FCK.Name ] = FCK ;}
meta: 1235	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1235/c3e806dd2e80d30e5028083f65e626da8d5acba4/fckeditorapi.js/buggy/reference/library/src/webapp/editor/FCKeditor/editor/_source/fckeditorapi.js