Make WordPress Core


Ignore:
Timestamp:
06/24/2017 09:18:21 AM (7 years ago)
Author:
azaozz
Message:

TinyMCE: fix directionality settings for RTL languages.

Props westonruter, sa3idho.
Fixes #40972 for trunk.

File:
1 edited

Legend:

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

    r40910 r40927  
    826826        $settings['indent'] = true;
    827827        $settings['elementpath'] = false;
     828
     829        if ( is_rtl() ) {
     830            $settings['directionality'] = 'rtl';
     831        }
    828832
    829833        // In production all plugins are loaded (they are in wp-editor.js.gz)
Note: See TracChangeset for help on using the changeset viewer.