Ticket #3144 (closed defect (bug): worksforme)

Opened 2 years ago

Last modified 1 year ago

TinyMCE causes javascript error in IE

Reported by: intoxination Assigned to: anonymous
Priority: normal Milestone:
Component: Administration Version: 2.1
Severity: major Keywords: tinymce ie has-patch
Cc:

Description

tiny_mce_config.php loads in IE before tiny_mce and calls tinyMCE.init(initArray) before the tiny_mce class is loaded causing a "tinymce is undefined error".

Attachments

3144-gzipoptoins-tinymce.patch (0.9 kB) - added by intoxination on 09/22/06 22:39:55.
Patch to tiny_mce_gzip.php to recognize gzipcompression option

Change History

09/19/06 04:27:09 changed by foolswisdom

intoxination, please include your environment information both on the server and client (version of IE)

Does the symptom result in TinyMCE not loading at all in the Write page? Are there other symptoms?

09/20/06 02:10:50 changed by intoxination

Server is Apache 2.2.2, PHP 5 on Linux. IE is version 6.

TinyMCE won't load at all since it errors out on the config file at line 36. It also causes the Ajax on the comment assignment box to not work (new categories are added but not displayed unless you refresh the page). In the end, you are left with just the basic textarea editor. It does load into Firefox without any problems, so it is just in IE.

I am running 3 copies of 2.0.4 on the same server and those all work without any problems.

09/20/06 18:23:36 changed by ryan

Does your theme include prototype? Old versions of prototype included by some themes can interfere with things in 2.1.

09/20/06 18:52:23 changed by intoxination

Nope. This is a fresh install. Using the default theme and no plugins. I just updated the SVN today so it is at 4198 and still having the problem.

09/20/06 20:42:04 changed by intoxination

Well I think I figured this out. I do not have gzip compression installed on this server. Firefox won't request gzip for some reason, but IE is, even with the gzip option turned off in the options screen of WP. Apparently tinyMCE isn't recognizing the gzip option and always trying to make a compressed file.

09/22/06 22:39:55 changed by intoxination

  • attachment 3144-gzipoptoins-tinymce.patch added.

Patch to tiny_mce_gzip.php to recognize gzipcompression option

09/22/06 22:42:11 changed by intoxination

  • keywords changed from tinymce 2.1 ie to tinymce 2.1 ie haspatch.

The patch I uploaded simply adds another check in the header checking line for the gzipcompression option. This will force TinyMCE compression to obey by the gzip compression option of WP. Another option would be to add a seperate option on the write page to compress TinyMCE.

09/24/06 20:14:51 changed by foolswisdom

  • keywords changed from tinymce 2.1 ie haspatch to tinymce ie has-patch.

09/25/06 19:09:28 changed by foolswisdom

Jamie "intoxination" Holly reports that this issue is only in 2.1, ie not a candidate for 2.0.5 .

12/01/06 10:53:16 changed by matt

  • milestone changed from 2.1 to 2.2.

02/13/07 16:11:49 changed by mata7

Is this related to the issue I experienced with 2.1? I posted about it in the support forums. http://wordpress.org/support/topic/102137?replies=2

Same thing there, that the TinyMCE gives a javascript error. Althought the issue I had was with post-new.php, viewing wordpress.org with IE7.

03/09/07 19:36:46 changed by starlyth

This may possibly be related, however, the gzip options are now in tiny_mce_gzip.php

03/27/07 18:50:32 changed by foolswisdom

  • milestone changed from 2.2 to 2.3.

09/12/07 22:28:08 changed by markjaquith

  • status changed from new to closed.
  • resolution set to worksforme.
  • milestone deleted.

Re-open if still valid.