Index: fckeditor.utils.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/fckeditor/fckeditor.utils.js,v retrieving revision 1.2.2.32 diff -u -r1.2.2.32 fckeditor.utils.js --- fckeditor.utils.js 11 Mar 2009 11:53:52 -0000 1.2.2.32 +++ fckeditor.utils.js 27 Apr 2009 05:56:52 -0000 @@ -4,6 +4,7 @@ var fckLaunchedTextareaId = new Array; var fckLaunchedJsId = new Array; var fckFirstrun = new Array; +var fckActiveId = false; var fckIsIE = ( /*@cc_on!@*/false ) ? true : false ; function Toggle(js_id, textareaID, textTextarea, TextRTE, xss_check) @@ -212,6 +213,13 @@ } } } + +// Update a global variable containing the active FCKeditor ID. +function DoFCKeditorUpdateId( editorInstance ) +{ + fckActiveId = editorInstance.Name; +} + // The FCKeditor_OnComplete function is a special function called everytime an // editor instance is completely loaded and available for API interactions. function FCKeditor_OnComplete( editorInstance ) @@ -231,6 +239,7 @@ $(editorInstance.LinkedField.form).submit(DoFCKeditorTeaserStuff); editorInstance.Events.AttachEvent( 'OnAfterLinkedFieldUpdate', DoFCKeditorTeaserStuff ) ; + editorInstance.Events.AttachEvent( 'OnFocus', DoFCKeditorUpdateId ); var teaser = false; var teaserCheckbox = false;