? img_assist.HEAD.#293909.empty-sizes.patch
Index: CHANGELOG.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/CHANGELOG.txt,v
retrieving revision 1.65
diff -u -p -r1.65 CHANGELOG.txt
--- CHANGELOG.txt	29 Mar 2009 07:46:57 -0000	1.65
+++ CHANGELOG.txt	27 May 2009 15:02:17 -0000
@@ -6,6 +6,7 @@ Img_Assist x.x-x.x, xxxx-xx-xx
 
 Img_Assist 6.x-3.x, xxxx-xx-xx
 ------------------------------
+#293909 by TwoD: Worked around IE not having defined img tag width/height.
 #362128 by jonathan1055, sun: Fixed image count not displayed in select list.
 by sun: Added Administration menu suppression.
 by sun: Removed obsolete drupalimage TinyMCE plugin.
Index: plugins/img_assist/img_assist.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/plugins/img_assist/img_assist.js,v
retrieving revision 1.4
diff -u -p -r1.4 img_assist.js
--- plugins/img_assist/img_assist.js	11 Feb 2009 01:43:33 -0000	1.4
+++ plugins/img_assist/img_assist.js	27 May 2009 15:02:17 -0000
@@ -87,7 +87,17 @@ Drupal.wysiwyg.plugins.img_assist = {
       if (!$(this).is('.img-assist')) {
         return;
       }
-      var inlineTag = '[img_assist|' + decodeURIComponent(this.alt) + '|align=' + this.align + '|width=' + this.width + '|height=' + this.height + ']';
+      var inlineTag = '[img_assist|' + decodeURIComponent(this.alt) + '|align=' + this.align + '|width=';
+      if(this.outerHTML) {
+        // If this happens just after attach(), IE has not yet set width and height
+        this.outerHTML.match(/width=(\d+)/i);
+        inlineTag += RegExp.$1;
+        this.outerHTML.match(/height=(\d+)/i);
+        inlineTag += '|height=' + RegExp.$1 + ']';
+      }
+      else {
+        inlineTag += this.width + '|height=' + this.height + ']';
+      }
       $(this).replaceWith(inlineTag);
     });
     return $content.html();
