--- autotag.js	2010-09-23 19:33:52.000000000 +1000
+++ autotag.js.new	2010-12-03 23:00:42.000000000 +1100
@@ -4,17 +4,19 @@
  * fields, which is done on a normal submit.
  */
 function autotag_submitextra(form_values, element, options){
-  $.each(Drupal.wysiwyg.instances, function(index, value){
-    if(value.status != undefined && value.status == 1){
-      var editor = tinyMCE.get(value.field);
-      editor.save();
-      $.each(form_values, function(i, m){
-        if(m.name == $('#'+value.field).attr('name')){
-          form_values[i]['value'] = $('#'+value.field).val();
-        }
-      });
-    }
-  });
+  if(Drupal.wysiwyg != undefined){
+    $.each(Drupal.wysiwyg.instances, function(index, value){
+      if(value.status != undefined && value.status == 1){
+        var editor = tinyMCE.get(value.field);
+        editor.save();
+        $.each(form_values, function(i, m){
+          if(m.name == $('#'+value.field).attr('name')){
+            form_values[i]['value'] = $('#'+value.field).val();
+          }
+        });
+      }
+    });
+  }
 }
 /*
  * Uncheck the autotag check box
@@ -23,4 +25,4 @@ function autotag_uncheckbox(message){
   $('#edit-taxonomyautotagcheckbox').attr('checked', '');
   $('#autotag-message').html(message);
   $('#autotag-message').slideDown();
-}
\ No newline at end of file
+}
