Closed (won't fix)
Project:
IMCE
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2007 at 21:45 UTC
Updated:
15 Mar 2011 at 06:10 UTC
Hi, I really like this module, it works well but it seems to affect the page load time of my site. I use firebug for firefox and it flagged the following:
oFCKeditor_edit_foo is not defined
(no name)()by-module (line 908)
e()
also it lists the imce_set_fck.js as taking 15.19s to load at 911b.
// $Id: imce_set_fck.js,v 1.1.2.4 2006/11/23 01:03:47 ufku Exp $
if (Drupal.jsEnabled) {
$(window).load(imceInitiateFCK);
}
function imceInitiateFCK() {
if ("undefined" != typeof(window.FCKeditorAPI)) {
$.each(FCKeditorAPI.__Instances, function(){imceSetFCK(this);});
}
else if ("undefined" != typeof(window.FCKeditor_OpenPopup)) {
$('textarea').each(function () {
if (eval('"undefined" != typeof(oFCKeditor_' + this.id.replace(/\-/g, '_') +')')) {
imceSetFCK(eval('oFCKeditor_' + this.id.replace(/\-/g, '_')));
}
});
}
}
function imceSetFCK(fck) {
var width = 640;
var height = 480;
var types = ['Image', 'Link', 'Flash'];
for (var t in types) {
eval('fck.Config.'+types[t]+'Browser = true; fck.Config.'+types[t]+'BrowserURL = imceBrowserURL;
fck.Config.'+types[t]+'BrowserWindowWidth = width; fck.Config.'+types[t]+'BrowserWindowHeight = height
;');
}
}
When I disabled fckeditor (still with imce enabled) I didn't get this message.
Thanks.
Comments
Comment #1
ontwerpwerk commentedreassigning this to imce
Comment #2
ontwerpwerk commentedcould you try it with the new 1.3 beta release of the fckeditor module .. it should invoke the imce component better.
Comment #3
ufku commented