TinyMCE: fix directionality settings for RTL languages.

Props westonruter, sa3idho.
Fixes #40972 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@40927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2017-06-24 09:18:21 +00:00
parent d29e68fbda
commit 31fa66e976
1 changed files with 4 additions and 0 deletions

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(