diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 73de84de2b..da39c96de1 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -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(