Index: img_assist.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist.js,v
retrieving revision 1.4.2.3
diff -u -p -r1.4.2.3 img_assist.js
--- img_assist.js	21 Sep 2007 01:37:57 -0000	1.4.2.3
+++ img_assist.js	21 Sep 2007 02:19:14 -0000
@@ -159,6 +159,6 @@ function insertImage() {
 }
 
 function getHTML(formObj) {
-	var html = frames['img_assist_main'].document.getElementById("finalhtmlcode").innerHTML;
+	var html = frames['img_assist_main'].document.getElementById('finalhtmlcode').value;
 	return html;
 }
Index: img_assist.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist.module,v
retrieving revision 1.68.2.27
diff -u -p -r1.68.2.27 img_assist.module
--- img_assist.module	20 Sep 2007 04:07:00 -0000	1.68.2.27
+++ img_assist.module	21 Sep 2007 02:19:03 -0000
@@ -983,13 +983,16 @@ function img_assist_insert_html() {
 
 function img_assist_insert_html_form() {
   $htmlcode = img_assist_set_htmlcode();
-  $form[] = array('#value' => '<div id="finalhtmlcode">'. $htmlcode .'</div>');
+  $form[] = array(
+    '#id' => 'finalhtmlcode',
+    '#type' => 'hidden',
+    '#value' => $htmlcode,
+  );
 
   $form['insertmode'] = array(
     '#type' => 'hidden',
     '#value' => 'html2',
   );
-  //$form['#attributes'] = array('name' => 'img_assist');
 
   return $form;
 }
@@ -1544,13 +1547,13 @@ function theme_img_assist_page($content,
   $output .= "<style type=\"text/css\" media=\"{$media}\">@import \"" . base_path() . $path ."\";</style>\n";
 
   $output .= "</head>\n";
-  $output .= "<body" . drupal_attributes($attributes) .">\n";
+  $output .= "<body". drupal_attributes($attributes) .">\n";
 
   $output .= theme_status_messages();
 
-  $output .= "\n<!-- begin content -->\n";
+  $output .= "<!-- begin content -->\n";
   $output .= $content;
-  $output .= "\n<!-- end content -->\n";
+  $output .= "<!-- end content -->\n";
   $output .= '</body>';
   $output .= '</html>';
   return $output;
Index: img_assist_textarea.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist_textarea.js,v
retrieving revision 1.2.2.3
diff -u -p -r1.2.2.3 img_assist_textarea.js
--- img_assist_textarea.js	21 Sep 2007 01:37:57 -0000	1.2.2.3
+++ img_assist_textarea.js	21 Sep 2007 01:53:37 -0000
@@ -11,10 +11,7 @@
  */
 
 // Declare global variables
-var myDoc;
-var myForm;
-var myTextarea;
-var hasInputFormat;
+var myDoc, myForm, myTextarea, hasInputFormat;
 
 function initLoader() {
   // Save the references to the parent form and textarea to be used later. 
Index: img_assist_tinymce.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist_tinymce.js,v
retrieving revision 1.1.4.4
diff -u -p -r1.1.4.4 img_assist_tinymce.js
--- img_assist_tinymce.js	21 Sep 2007 01:37:57 -0000	1.1.4.4
+++ img_assist_tinymce.js	21 Sep 2007 02:21:27 -0000
@@ -95,12 +95,12 @@ function getFilterTag(formObj) {
   // @see TinyMCE_drupalimage_cleanup() in drupalimage plugin.
   var miscAttribs = 'nid=' + nid + '|title=' + captionTitle + '|desc=' + captionDesc + '|link=' + link;
   miscAttribs = encodeURIComponent(miscAttribs);
-  var html = '<img src="' + (tinyMCE.getParam("theme_href") + "/images/spacer.gif") + '"'
-           + ' width="' + width + '" height="' + height + '" align="' + align + '"'
-           + ' alt="' + miscAttribs + '" title="' + miscAttribs + '"'
-           + ' name="mceItemDrupalImage" class="mceItemDrupalImage" />';
+  var content = '<img src="' + (tinyMCE.getParam("theme_href") + "/images/spacer.gif") + '"'
+              + ' width="' + width + '" height="' + height + '" align="' + align + '"'
+              + ' alt="' + miscAttribs + '" title="' + miscAttribs + '"'
+              + ' name="mceItemDrupalImage" class="mceItemDrupalImage" />';
   
-  return html;
+  return content;
 }
 
 function insertToEditor(content) {
