WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 3 weeks ago

#14232 reopened defect (bug)

tiny_mce.js different from wp-tinymce.js.gz

Reported by: ForestMist Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.8.1
Component: TinyMCE Keywords: reporter-feedback
Focuses: javascript Cc:

Description

I was having a proxy issue that was interfering with gzip'd transfers when I noticed that tiny_mce.js and wp-tinymce.js.gz were different. The non gzipped version of the file seems to be missing quite a lot of code that the gzipped one has. Getting served the non-gzipped JS file seems to break the editor.

This seems to be the case in WP 3.0 and 2.9.2. Probably earlier versions too.

The files should be set to they are exactly the same yes?

Change History (5)

comment:1 nacin4 years ago

tiny_mce.js is TInyMCE core. wp-tinymce.js.gz includes WP plugins. The non-gzipped version of the latter, wp-tinymce.js, did exist in 2.9.2, but it was pulled in 3.0 as any browser that can handle TinyMCE can also handle the gzipped file.

comment:2 azaozz4 years ago

  • Keywords tinyMCE removed
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 3.0 deleted

As @nacin explained wp-tinymce.js.gz includes the TinyMCE core plus all of the plugins from tinymce/plugins/ and a small script to pre-load them.

If you're having problems loading the gzipped file through your proxy you can disable compression. This will load tiny_mce.js and TinyMCE will load its plugins with JS (of course that will be slower).

comment:3 nacin4 years ago

  • Milestone Awaiting Review deleted

comment:4 follow-up: flipstorm3 weeks ago

  • Focuses javascript added
  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Version set to 3.8.1

I have come across this issue in 3.8.1. It's not that the files are different, but that if for some reason the gzip version doesn't work, the default file loaded is looking for a language files that don't exist.

When wp-tinymce.php imports tiny_mce.js, browser errors show requests for langs/en.js and themes/advanced/langs/en.js. This is because in WP the language file is langs/wp-langs-en.js

comment:5 in reply to: ↑ 4 SergeyBiryukov3 weeks ago

  • Keywords reporter-feedback added
  • Milestone set to Awaiting Review

Replying to flipstorm:

I have come across this issue in 3.8.1. It's not that the files are different, but that if for some reason the gzip version doesn't work, the default file loaded is looking for a language files that don't exist.

Does it still happen with all plugins disabled and a default theme (Twenty Fourteen or Twenty Thirteen) activated?

Note: See TracTickets for help on using tickets.