I've installed a few days ago a new TinyMCE module (and, new TinyMCE 2.0.7 + latest 1.0.9 compressor). Using Firefox 1.5.0.7, I've noticed problems opening a link and image window. In the previous version, I've had to disable "advanced link" and "advanced image", otherwise only empty windows appeared in my Firefox (in M$IE it was working well!).

After spending quite some time, analyzing differences between an old Drupal module and the new version (and also differences between previous TinyMCE and the 2.0.7), without finding anything interesting or suspicious, as a last possibility I've disabled a compressor. Suddenly, everything started to work without any problem. Even having "advanced link" and "advanced image" selected, it works now in Firefox. Only standard windows came up (not advanced as in M$IE), but at least it works (and, I can have these options turned on, and edit a page through M$IE if I need the advanced options...).

I have no idea what is broken in a TinyMCE PHP compressor (it seems to be broken already in a 1.0.8 compressor and turned to even worse in 1.0.9), but I want to share my experience - just if anyone have the same problem. It is maybe slower, but at least it works ;-)

CommentFileSizeAuthor
#6 tinymce_7.module43.09 KBphw

Comments

rubenk’s picture

I'd like to keep tabs on what people say here too.

ricmadeira’s picture

Title: Link and Image Window problems (Firefox) » Link and Image Window problems with latest compressor plugin

I'm having this problem too, with IE7.

I've been using tinymce.module for over a year now, without problems, but a few days ago I updated tinymce to the latest version (2.0.8) and also the compressor plugin. I have the exact same problems with link and image windows. All other things seem fine.

ricmadeira’s picture

Maybe the answer to our troubles lies somewhere around here:

http://tinymce.moxiecode.com/punbb/viewtopic.php?id=4937

(it's the thread about the new compressor plugin and the difficulties people are having with it).

ricmadeira’s picture

I changed back to the previous PHP compressor, 1.0.8, and it's working fine now.

The new compressor seems to have an extra requirement that maybe tinymce.module doesn't support yet. The readme file now asks for a tinyMCE_GZ.init script in addition to the default tinyMCE.init one; maybe not having that is the source of our problems? Sorry, don't know enough about PHP and modules and Tinymce to test this.

ricmadeira’s picture

Category: support » bug

(Just updating this to a bug report.)

phw’s picture

Status: Active » Needs review
StatusFileSize
new43.09 KB

The solution seems to be to add some options when loading the tiny_mce_gzip.php file. The following patch will do the work in the tinymce.module (line 200 following). I have attached the full file with the added patch.

if (file_exists($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php')) {
  $compressor_options = '?js=true';
  $compressor_options .= '&plugins=' . implode(',', $init['plugins']);
  $compressor_options .= '&themes=' . $init['theme'];
  $compressor_options .= '&languages=' . $init['language'];
  $compressor_options .= '&diskcache=false';
  drupal_add_js($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php' . $compressor_options);
}

Those options are explained in the TinyMCE compressor's readme. Maybe they changed something here, but I don't know since I have no experience with older versions of the compressor.

mupsi’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)