Index: /FCKeditor/trunk/_whatsnew.html
===================================================================
--- /FCKeditor/trunk/_whatsnew.html	(revision 2561)
+++ /FCKeditor/trunk/_whatsnew.html	(revision 2562)
@@ -74,4 +74,6 @@
 			where email links in IE would take the browser to a new page in addition to calling up the
 			email client.</li>
+		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2519">#2519</a>] Fixed race
+			condition at registering the FCKeditorAPI object in multiple editor scenarios.</li>
 	</ul>
 	<p>
Index: /FCKeditor/trunk/editor/_source/fckeditorapi.js
===================================================================
--- /FCKeditor/trunk/editor/_source/fckeditorapi.js	(revision 2561)
+++ /FCKeditor/trunk/editor/_source/fckeditorapi.js	(revision 2562)
@@ -43,5 +43,5 @@
 				'Version : "[Development]",' +
 				'VersionBuild : "[DEV]",' +
-				'Instances : new Object(),' +
+				'Instances : window.FCKeditorAPI && window.FCKeditorAPI.Instances || {},' +
 
 				'GetInstance : function( name )' +
@@ -61,5 +61,5 @@
 				'},' +
 
-				'_FunctionQueue	: {' +
+				'_FunctionQueue	: window.FCKeditorAPI && window.FCKeditorAPI._FunctionQueue || {' +
 					'Functions : new Array(),' +
 					'IsRunning : false,' +
@@ -118,6 +118,7 @@
 			else if ( FCKBrowserInfo.IsSafari )
 			{
-				// oParentWindow.eval in Safari and Gran Paradiso executes in the calling window
-				// environment, instead of the parent one. The following should make it work.
+				// 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') ;
