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.10 diff -u -p -r1.68.2.50.2.10 img_assist.module --- img_assist.module 13 Sep 2008 13:07:08 -0000 1.68.2.50.2.10 +++ img_assist.module 7 Oct 2008 15:40:01 -0000 @@ -1065,20 +1065,24 @@ function img_assist_properties_form($nod ); // Buttons. - $form[] = array('#value' => '
'); $form[] = array('#value' => ''); $form['#attributes'] = array('name' => 'img_assist'); @@ -1795,7 +1799,7 @@ function theme_img_assist_page($content, $output .= drupal_get_js(); $output .= "\n