Add support for TinyMCE gzip compressor

zoo33 - June 29, 2008 - 21:11
Project:Wysiwyg API
Version:6.x-1.x-dev
Component:Wysiwyg Editor
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch (code needs work)
Description

I can't get TinyMCE to show up when I have the gzip compressor installed. Firebug reports:

tinyMCE is not defined
wysiwyg_editor.js line 14
wysiwyg_editor.js line 116

I can see that tiny_mce_gzip.js is in fact loaded.

When I remove the gzip files, it does work.

Using TinyMCE 2.1.3. Tested in Firefox 3 and Safari.

#1

tonyp001 - July 9, 2008 - 00:17

I'm having the same issue with TinyMCE on Drupal 5.7. I've tested it on FF3 and IE7.

#2

bomarmonk - July 12, 2008 - 19:18

I can confirm this in Drupal 5.8: when I remove the compressor files, tinymce shows up. With those files placed in the tinymce directory, the editor will not display.

#3

sun - July 12, 2008 - 23:06
Title:Gzip compressor doesn't work.» Add support for TinyMCE gzip compressor
Category:bug report» feature request
Status:active» patch (code needs work)

I've tried to implement support for gzip compressor now. However, TinyMCE fails to load external plugins (hook_wysiwyg_plugin()) when gzip compressor is enabled/used.

Basically, the first change in wysiwyg_editor.js (and subsequent replacements of tinyMCE with Drupal.wysiwygEditor) in attached patch should be sufficient actually, but that doesn't seem to be the case.

I'm inclined to postpone this feature until support for TinyMCE 3.x has been implemented, which hopefully works better.

AttachmentSize
wysiwyg-DRUPAL-5.gzip_.patch2.93 KB
 
 

Drupal is a registered trademark of Dries Buytaert.