Index: img_assist.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/img_assist.js,v retrieving revision 1.4.2.5 diff -u -p -r1.4.2.5 img_assist.js --- img_assist.js 19 Nov 2007 02:27:49 -0000 1.4.2.5 +++ img_assist.js 7 Oct 2008 16:25:28 -0000 @@ -131,7 +131,7 @@ function launch_popup(nid, mw, mh) { } function insertImage() { - if (window.opener) { + if (window.opener || !tinyMCEPopup.isWindow) { // Get variables from the fields on the properties frame var formObj = frames['img_assist_main'].document.forms[0]; // Get mode (see img_assist.module for detailed comments) Index: img_assist.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/img_assist.module,v retrieving revision 1.68.2.50.2.11 diff -u -p -r1.68.2.50.2.11 img_assist.module --- img_assist.module 12 Oct 2008 17:04:49 -0000 1.68.2.50.2.11 +++ img_assist.module 15 Oct 2008 09:36:25 -0000 @@ -1794,7 +1794,7 @@ function theme_img_assist_page($content, $output .= drupal_get_js(); $output .= "\n