diff --git a/sites/all/modules/wysiwyg/editors/ckeditor.inc b/sites/all/modules/wysiwyg/editors/ckeditor.inc
index b00a25b..7f7fcd5 100644
--- a/sites/all/modules/wysiwyg/editors/ckeditor.inc
+++ b/sites/all/modules/wysiwyg/editors/ckeditor.inc
@@ -122,6 +122,7 @@ function wysiwyg_ckeditor_themes($editor, $profile) {
  *   Drupal.settings.wysiwyg.configs.{editor}
  */
 function wysiwyg_ckeditor_settings($editor, $config, $theme) {
+  global $language;
   $settings = array(
     'baseHref' => base_path(),
     'width' => '100%',
@@ -169,6 +170,7 @@ function wysiwyg_ckeditor_settings($editor, $config, $theme) {
   if (isset($config['language'])) {
     $settings['language'] = $config['language'];
   }
+  $settings['contentsLangDirection'] = $language->direction == LANGUAGE_RTL ? 'rtl' : 'ltr';
   if (isset($config['resizing'])) {
     $settings['resize_enabled'] = $config['resizing'];
   }
