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 = <<.mceEditor img { display: inline; }'); } // 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') {