diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 200031bbdc..95b533e7b2 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -600,6 +600,8 @@ final class _WP_Editors { } } + $body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); + if ( !empty($set['tinymce']['body_class']) ) { $body_class .= ' ' . $set['tinymce']['body_class']; unset($set['tinymce']['body_class']); diff --git a/src/wp-includes/css/editor.css b/src/wp-includes/css/editor.css index b05def96fe..e69869a403 100644 --- a/src/wp-includes/css/editor.css +++ b/src/wp-includes/css/editor.css @@ -807,6 +807,14 @@ i.mce-i-hr:before { box-sizing: border-box; } +.rtl .wp-editor-area { + font-family: Tahoma, Monaco, monospace; +} + +.locale-he-il .wp-editor-area { + font-family: Arial, Monaco, monospace; +} + .wp-editor-container textarea.wp-editor-area { width: 100%; margin: 0; diff --git a/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css b/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css index 9cd5c944b8..d3e17d4dcb 100644 --- a/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css +++ b/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css @@ -17,6 +17,14 @@ body { margin: 9px 10px; } +body.rtl { + font-family: Tahoma, "Times New Roman", "Bitstream Charter", Times, serif; +} + +body.locale-he-il { + font-family: Arial, "Times New Roman", "Bitstream Charter", Times, serif; +} + body.wp-autoresize { max-width: 100%; overflow: visible !important;