New gzip compressor for TinyMCE from azaozz. fixes #5807

git-svn-id: https://develop.svn.wordpress.org/trunk@6789 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-11 17:45:18 +00:00
parent 1d038f7c24
commit 9094f86cd8
5 changed files with 260 additions and 473 deletions
+5 -23
View File
@@ -1382,32 +1382,14 @@ function _config_wp_siteurl( $url = '' ) {
}
function _mce_set_direction() {
function _mce_set_direction( $input ) {
global $wp_locale;
if ( 'rtl' == $wp_locale->text_direction ) {
echo 'directionality : "rtl" ,';
echo 'theme_advanced_toolbar_align : "right" ,';
}
}
function _mce_load_rtl_plugin( $input ) {
global $wp_locale;
if ( 'rtl' == $wp_locale->text_direction )
$input[] = 'directionality';
return $input;
}
function _mce_add_direction_buttons( $input ) {
global $wp_locale;
if ( 'rtl' == $wp_locale->text_direction ) {
$new_buttons = array( 'separator', 'ltr', 'rtl' );
$input = array_merge( $input, $new_buttons );
$input['directionality'] = 'rtl';
$input['theme_advanced_toolbar_align'] = 'right';
$input['plugins'] .= ',directionality';
$input['theme_advanced_buttons2'] .= ',|,ltr,rtl';
}
return $input;