Hi,
I have got a single instance of CKEditor working with a custom image uploader that i have built using asp. When the image is uploaded i call
window.top.opener.CKEDITOR.tools.callFunction(2, encodeURI( '<%=(tblSystemInfo.Fields.Item("webAddress").Value)%>/Images/Uploads/<%=Session("uploadedFileName")%>' ).replace( '#', '%23' ));
window.top.close() ;
window.top.opener.focus() ;
to load the image i have uploaded into the image URL field. This works great, however, when I have multiple instances of CKEditor on the same page, only the first instance works, the others result in a javacript error on the parent page after uploading the image.
The error is _.filebrowserSe is null or not an object (line 54 character 1059 of ckeditor.js)
Does anyone have any suggestions?
Thanks in advance
Jason
I have got a single instance of CKEditor working with a custom image uploader that i have built using asp. When the image is uploaded i call
window.top.opener.CKEDITOR.tools.callFunction(2, encodeURI( '<%=(tblSystemInfo.Fields.Item("webAddress").Value)%>/Images/Uploads/<%=Session("uploadedFileName")%>' ).replace( '#', '%23' ));
window.top.close() ;
window.top.opener.focus() ;
to load the image i have uploaded into the image URL field. This works great, however, when I have multiple instances of CKEditor on the same page, only the first instance works, the others result in a javacript error on the parent page after uploading the image.
The error is _.filebrowserSe is null or not an object (line 54 character 1059 of ckeditor.js)
Does anyone have any suggestions?
Thanks in advance
Jason
Re: Multiple instances of CKEditor & image uploads
the "2" should be the variable CKEDITOR posted to your asp file,like
<%= Request.Form("CKEditorFuncNum") %>