Index: ckeditor.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ckeditor/ckeditor.module,v
retrieving revision 1.2
diff -u -p -r1.2 ckeditor.module
--- ckeditor.module	22 Oct 2009 20:35:40 -0000	1.2
+++ ckeditor.module	14 Nov 2009 23:43:29 -0000
@@ -709,7 +717,7 @@ function ckeditor_process_textarea($elem
           break;
 
         case 'imce':
-          $settings[$textarea_id]['filebrowserBrowseUrl'] = $host ."index.php?q=imce&app=ckeditor";
+          $settings[$textarea_id]['filebrowserBrowseUrl'] = $host ."index.php?q=imce&app=ckeditor|sendto@ckeditor_fileUrl|";
           break;
 
         case 'webfm':
Index: ckeditor.utils.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ckeditor/ckeditor.utils.js,v
retrieving revision 1.1
diff -u -p -r1.1 ckeditor.utils.js
--- ckeditor.utils.js	16 Oct 2009 03:24:07 -0000	1.1
+++ ckeditor.utils.js	14 Nov 2009 23:43:29 -0000
+//IMCE support
+function ckeditor_fileUrl(file, win) {
+  var cfunc=win.location.href.split('&');
+  for(var x in cfunc){
+    if(cfunc[x].match(/^CKEditorFuncNum=\d+$/)){
+      cfunc=cfunc[x].split('=');
+      break;
+    }
+  }
+  CKEDITOR.tools.callFunction( cfunc[1], file.url);
+  win.close();//close IMCE
+}
\ No newline at end of file
