Index: modules/imce/imce_set_fck.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/imce/imce_set_fck.js,v retrieving revision 1.1.2.3 diff -u -r1.1.2.3 imce_set_fck.js --- modules/imce/imce_set_fck.js 18 Nov 2006 16:28:38 -0000 1.1.2.3 +++ modules/imce/imce_set_fck.js 23 Nov 2006 00:41:06 -0000 @@ -1,10 +1,10 @@ -// $Id: imce_set_fck.js,v 1.1.2.3 2006/11/18 16:28:38 ufku Exp $ +// $Id$ if (Drupal.jsEnabled) { $(window).load(imceInitiateFCK); } function imceInitiateFCK() { if ("undefined" != typeof(window.FCKeditorAPI)) { - $.each(FCKeditorAPI.__Instances, imceSetFCK); + $.each(FCKeditorAPI.__Instances, function(){imceSetFCK(this);}); } else if ("undefined" != typeof(window.FCKeditor_OpenPopup)) { $('textarea').each(function () { @@ -15,7 +15,6 @@ } } function imceSetFCK(fck) { - var fck = fck||this; var width = 640; var height = 480; var types = ['Image', 'Link', 'Flash'];