Make WordPress Core

Opened 18 years ago

Closed 17 years ago

Last modified 10 months ago

#3144 closed defect (bug) (worksforme)

TinyMCE causes javascript error in IE

Reported by: intoxination's profile intoxination Owned by:
Milestone: Priority: normal
Severity: major Version: 2.1
Component: Administration Keywords: tinymce ie has-patch
Focuses: 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 (1)

3144-gzipoptoins-tinymce.patch (878 bytes) - added by intoxination 18 years ago.
Patch to tiny_mce_gzip.php to recognize gzipcompression option

Download all attachments as: .zip

Change History (14)

#1 @foolswisdom
18 years ago

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?

#2 @intoxination
18 years ago

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.

#3 @ryan
18 years ago

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

#4 @intoxination
18 years ago

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.

#5 @intoxination
18 years ago

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.

@intoxination
18 years ago

Patch to tiny_mce_gzip.php to recognize gzipcompression option

#6 @intoxination
18 years ago

  • 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.

#7 @foolswisdom
18 years ago

  • Keywords has-patch added; 2.1 haspatch removed

#8 @foolswisdom
18 years ago

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

#9 @matt
18 years ago

  • Milestone changed from 2.1 to 2.2

#10 @mata7
18 years ago

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.

#11 @starlyth
18 years ago

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

#12 @foolswisdom
18 years ago

  • Milestone changed from 2.2 to 2.3

#13 @markjaquith
17 years ago

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

Re-open if still valid.

Note: See TracTickets for help on using tickets.