New gzip compressor for TinyMCE from azaozz. fixes #5807

git-svn-id: http://svn.automattic.com/wordpress/trunk@6789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-02-11 17:45:18 +00:00
parent 2b7ea6a824
commit 9c7db11219
5 changed files with 260 additions and 473 deletions

View File

@@ -30,10 +30,8 @@ class WP_Scripts {
$this->add( 'colorpicker', '/wp-includes/js/colorpicker.js', false, '3517' );
// Modify this version when tinyMCE plugins are changed
$this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '20080208' );
$mce_config = apply_filters('tiny_mce_config_url', '/wp-includes/js/tinymce/tiny_mce_config.php');
$this->add( 'wp_tiny_mce', $mce_config, array('tiny_mce'), '20080208' );
$this->add( 'tiny_mce', $mce_config, false, '20080209' );
$this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6');
@@ -478,7 +476,7 @@ function wp_prototype_before_jquery( $js_array ) {
// These localizations require information that may not be loaded even by init
function wp_just_in_time_script_localization() {
wp_localize_script( 'wp_tiny_mce', 'wpTinyMCEConfig', array( 'defaultEditor' => wp_default_editor() ) );
wp_localize_script( 'tiny_mce', 'wpTinyMCEConfig', array( 'defaultEditor' => wp_default_editor() ) );
}
add_filter( 'wp_print_scripts', 'wp_just_in_time_script_localization' );