WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/13/2014 12:22:56 AM (6 years ago)
Author:
azaozz
Message:

RTL for TinyMCE:

  • Add _dir: 'rtl' to the TinyMCE translation object.
  • Fix editor.css for RTL.
  • Fix the Edit and Delete buttons position for wpview and images.
  • For _mce_set_direction(), update documentation and fix adding the 'ltr' button.

Fixes #27773

File:
1 edited

Legend:

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

    r27855 r28094  
    24582458 * direction set to 'rtl'.
    24592459 *
    2460  * Fills in the 'directionality', 'plugins', and 'theme_advanced_button1' array
    2461  * keys. These keys are then returned in the $input array.
     2460 * Fills in the 'directionality' setting, enables the 'directionality' plugin,
     2461 * and adds the 'ltr' button to 'toolbar1', formerly 'theme_advanced_buttons1' array
     2462 * keys. These keys are then returned in the $input (TinyMCE settings) array.
    24622463 *
    24632464 * @access private
    24642465 * @since 2.1.0
    24652466 *
    2466  * @param array $input MCE plugin array.
     2467 * @param array $input MCE settings array.
    24672468 * @return array Direction set for 'rtl', if needed by locale.
    24682469 */
     
    24712472        $input['directionality'] = 'rtl';
    24722473        $input['plugins'] .= ',directionality';
    2473         $input['theme_advanced_buttons1'] .= ',ltr';
     2474        $input['toolbar1'] .= ',ltr';
    24742475    }
    24752476
Note: See TracChangeset for help on using the changeset viewer.