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:
parent
d29e68fbda
commit
31fa66e976
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user