Make WordPress Core

Ticket #27773: 27773.patch

File 27773.patch, 1.4 KB (added by azaozz, 12 years ago)
  • src/wp-includes/class-wp-editor.php

     
    982982                $baseurl = self::$baseurl;
    983983                $mce_locale = self::$mce_locale;
    984984
     985                // Set direction
     986                if ( is_rtl() ) {
     987                        $mce_translation['_dir'] = 'rtl';
     988                }
     989
    985990                /**
    986991                 * Filter translated strings prepared for TinyMCE.
    987992                 *
  • src/wp-includes/css/editor.css

     
    18511851        font-family: Tahoma, sans-serif;
    18521852}
    18531853
     1854/* Has to be 'ltr' so it gets swapped with 'rtl' by cssjanus? */
     1855.mce-rtl .mce-flow-layout > div > div {
     1856        direction: ltr;
     1857}
     1858
    18541859html:lang(he-il) .rtl .wp-switch-editor,
    18551860html:lang(he-il) .rtl .quicktags-toolbar input  {
    18561861        font-family: Arial, sans-serif;
  • src/wp-includes/functions.php

     
    24702470        if ( is_rtl() ) {
    24712471                $input['directionality'] = 'rtl';
    24722472                $input['plugins'] .= ',directionality';
    2473                 $input['theme_advanced_buttons1'] .= ',ltr';
     2473                $input['toolbar1'] .= ',ltr';
    24742474        }
    24752475
    24762476        return $input;