Closed (fixed)
Project:
IMCE
Version:
6.x-2.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2010 at 19:21 UTC
Updated:
8 Jan 2011 at 15:10 UTC
The visible problem was we noticed the 'Insert File' link which send the url back to the link dialogue in TinyMCE was missing.
Error:
data[i].split is not a function
[Break on this error] Failed to load source for: http://.../all/modules/imce/js/imce_set_app.js?Q
My Solution:
Line 23 or ./js/imce_set_app.js needs to be converted to:
var arr = data[i].toString().split('@');
from var arr = data[i].split('@');
Comments
Comment #1
vkersten commentedThanks, but unfortunately, no fix for me - the 'file browser' button in ckeditor is (still) missing in rc2.
Maybe i have to get back to tinyMCE...
More help would really be welcome.
Comment #2
ufku commentedHow can this be reproduced?
Comment #3
ufku commentedComment #4
ttnt commentedI had the same problem, but only in IE. Clicking images or files in the filebrowser opened them in a new window instead of inserting them in the editor. This code resolved this issue and revived my "insert file" button.
Thanks for sharing jerodfritz!
Comment #5
ufku commentedNot being able to reproduce the bug, I've replaced for(var i in data) with for (var i = 0, len = data.length; i < len; i++) to make sure that only numeric properties are iterated.