Index: tinymce.module
===================================================================
--- tinymce.module	(revision 6661)
+++ tinymce.module	(working copy)
@@ -77,6 +77,7 @@ function tinymce_process_textarea($eleme
   static $is_running = FALSE;
   global $user;
   static $profile_name;
+  static $use_compressor = FALSE;
   
   //$element is an array of attributes for the textarea but there is no just 'name' value, so we extract this from the #id field
   $textarea_name = substr($element['#id'], strpos($element['#id'], '-') + 1);
@@ -123,6 +124,14 @@ $tinymce_invoke = <<<EOD
 
 EOD;
 
+$tinymce_gz_invoke = <<<EOD
+
+  tinyMCE_GZ.init({
+    $tinymce_settings
+  });
+
+EOD;
+
 $js_toggle = <<<EOD
 
   function mceToggle(id, linkid) {
@@ -195,8 +204,13 @@ EOD;
         drupal_add_js($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/plugins/filemanager/jscripts/mcfilemanager.js');
       }
       
-      // TinyMCE Compressor
-      if (file_exists($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php')) {
+      // TinyMCE Compressor 1.1.0
+      if (file_exists($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/tiny_mce_gzip.js')) {
+        drupal_add_js($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/tiny_mce_gzip.js');
+        $use_compressor = TRUE;
+      }
+      // TinyMCE Compressor (versions < 1.1.0)
+      elseif (file_exists($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php')) {
         drupal_add_js($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php');
       }
       else {
@@ -208,7 +222,10 @@ EOD;
       drupal_set_html_head('<style type="text/css" media="all">.mceEditor img { display: inline; }</style>');
     }
     // Load a TinyMCE init for each textarea.
-    if ($init) drupal_add_js($tinymce_invoke, 'inline');
+    if ($init) {
+      if ($use_compressor) drupal_add_js($tinymce_gz_invoke, 'inline');
+      drupal_add_js($tinymce_invoke, 'inline');
+    }
 
     //settings are saved as strings, not booleans
     if ($profile->settings['show_toggle'] == 'true') {
