mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-26 11:08:06 +01:00
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:
parent
dd7c2798dc
commit
db65c15aba
@ -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