Make WordPress Core


Ignore:
Timestamp:
02/11/2008 05:45:18 PM (19 years ago)
Author:
ryan
Message:

New gzip compressor for TinyMCE from azaozz. fixes #5807

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r6786 r6789  
    13831383
    13841384
    1385 function _mce_set_direction() {
     1385function _mce_set_direction( $input ) {
    13861386        global $wp_locale;
    13871387
    13881388        if ( 'rtl' == $wp_locale->text_direction ) {
    1389                 echo 'directionality : "rtl" ,';
    1390                 echo 'theme_advanced_toolbar_align : "right" ,';
    1391         }
    1392 }
    1393 
    1394 
    1395 function _mce_load_rtl_plugin( $input ) {
    1396         global $wp_locale;
    1397 
    1398         if ( 'rtl' == $wp_locale->text_direction )
    1399                 $input[] = 'directionality';
    1400 
    1401         return $input;
    1402 }
    1403 
    1404 
    1405 function _mce_add_direction_buttons( $input ) {
    1406         global $wp_locale;
    1407 
    1408         if ( 'rtl' == $wp_locale->text_direction ) {
    1409                 $new_buttons = array( 'separator', 'ltr', 'rtl' );
    1410                 $input = array_merge( $input, $new_buttons );
     1389                $input['directionality'] = 'rtl';
     1390                $input['theme_advanced_toolbar_align'] = 'right';
     1391                $input['plugins'] .= ',directionality';
     1392                $input['theme_advanced_buttons2'] .= ',|,ltr,rtl';
    14111393        }
    14121394
Note: See TracChangeset for help on using the changeset viewer.