[wp-trac] [WordPress Trac] #22152: tiny_mce.js content differs from wp-tinymce.js.gz

WordPress Trac noreply at wordpress.org
Sun Dec 16 21:33:43 UTC 2012


#22152: tiny_mce.js content differs from wp-tinymce.js.gz
-----------------------------+----------------------
 Reporter:  ali3n0           |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  TinyMCE          |     Version:  3.4.2
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |
-----------------------------+----------------------
Changes (by azaozz):

 * status:  new => closed
 * type:  defect (bug) => feature request
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 In WordPress TinyMCE can be loaded in two different ways:

 - Standard: loads tiny_mce.js (the core) that loads all plugins when it is
 initialized. This is also used when SCRIPT_DEBUG is set. As WordPress
 loads the translation strings from PHP, there is a function to mark the
 language files as loaded, so TinyMCE doesn't try to load them again.

 - Pre-compressed: loads the TinyMCE core plus all default plugins as one
 pre-compressed (.js.gz) file. This makes the loading quite faster. That
 file contains similar function to stop TinyMCE from trying to load
 language files.

 The purpose of wp-tinymce.php is only to check whether it should output
 the pre-compressed file and if the browser supports compressed (gzipped)
 input. Nothing is compressed at runtime.

 It seems your server has some configuration issues (perhaps always tries
 to compress output) that can be fixed/improved in htaccess.

 Supporting `deflate` would mean we will have to add another pre-compressed
 file or start compressing at runtime. However all modern browsers support
 both compression formats (which are very similar), so doing this doesn't
 make much sense.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22152#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list