? ckeditor-webfm-606568.patch Index: modules/webfm_popup/webfm_popup.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/webfm/modules/webfm_popup/webfm_popup.js,v retrieving revision 1.1 diff -u -p -r1.1 webfm_popup.js --- modules/webfm_popup/webfm_popup.js 8 Feb 2009 06:27:11 -0000 1.1 +++ modules/webfm_popup/webfm_popup.js 17 Nov 2009 14:14:23 -0000 @@ -13,6 +13,15 @@ function webfm_popupGetMenusAjax() { // Send the selected file to the rich text editor. webfm_popup.sendtocaller = function(obj) { + //CKEditor support + if (get_url_param('CKEditor').length > 0) { + var fid = $('#'+obj.row_id).find('td').eq(1).find('a').attr('title'); + window.opener.CKEDITOR.tools.callFunction( get_url_param('CKEditorFuncNum'), Drupal.settings.basePath + 'webfm_send/' + fid); + window.opener.focus(); + window.close(); + return; + } + // the window this popup was called from var doc = $(window.opener.document);