[wp-trac] [WordPress Trac] #20055: Load .dev.js scripts for TinyMCE plugins if $concatenate_scripts == false

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 16 23:28:19 UTC 2012


#20055: Load .dev.js scripts for TinyMCE plugins if $concatenate_scripts == false
-------------------------+------------------------------
 Reporter:  ericlewis    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  TinyMCE      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by nacin):

 Not sure what the best solution here is, but something needs to happen
 here to clean this up.

 The script-loader a while back got polluted with globals
 $concatenate_scripts, $compress_scripts, and $compress_css. This is silly
 as we also have constants for this, and also a site option called
 'can_compress_scripts'. None of these are canonical. It's silly to have
 all of these settings. script_concat_settings() should die and the values
 should be wrapped up into a function or two. Then TinyMCE should also
 respect SCRIPT_DEBUG.

 For this particular problem:

 Hypothetically, setting tinyMCEPreInit.suffix to be '.dev' is enough to
 load editor_plugin.dev.js files. But, if the .dev.js file does not exist,
 as it does for all non-WP plugins, then TinyMCE breaks. I would have no
 problems packaging the .dev.js files for the non-WP plugins if that's what
 it takes. It doesn't look like external plugins (added by WP plugins)
 would be affected.

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


More information about the wp-trac mailing list