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

Opened 5 years ago

Last modified 4 years ago

TinyMCE causes javascript error in IE

Reported by: intoxination Owned by: 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 Download (878 bytes) - added by intoxination 5 years ago.
Patch to tiny_mce_gzip.php to recognize gzipcompression option

Change History

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?

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.

comment:3   ryan5 years ago

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

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.

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.

Patch to tiny_mce_gzip.php to recognize gzipcompression option

  • Keywords haspatch added

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.

  • Keywords has-patch added; 2.1 haspatch removed

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

comment:9   matt5 years ago

  • Milestone changed from 2.1 to 2.2

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.

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

  • Milestone changed from 2.2 to 2.3
  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone 2.3 deleted

Re-open if still valid.

Note: See TracTickets for help on using tickets.