TinyMCE: fix directionality settings for RTL languages.

Merges [40927] to 4.8 branch.
Props westonruter, sa3idho.
Fixes #40972 for 4.8.1.

Built from https://develop.svn.wordpress.org/branches/4.8@41066


git-svn-id: http://core.svn.wordpress.org/branches/4.8@40918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-07-18 01:45:34 +00:00
parent dd7c2798dc
commit db65c15aba

View File

@ -826,6 +826,10 @@ final class _WP_Editors {
$settings['indent'] = true;
$settings['elementpath'] = false;
if ( is_rtl() ) {
$settings['directionality'] = 'rtl';
}
// In production all plugins are loaded (they are in wp-editor.js.gz)
// but only these will be initialized by default.
$settings['plugins'] = implode( ',', array(