Browse Source

Feature #306 - The online editor: Enabling the text direction fix from the previos commit for the full page mode too. The logic of the editor is not as I assumed it.

Ivan Tcholakov 15 years ago
parent
commit
6304c709bc
1 changed files with 3 additions and 3 deletions
  1. 3 3
      main/inc/lib/fckeditor/fckeditor.php

+ 3 - 3
main/inc/lib/fckeditor/fckeditor.php

@@ -415,7 +415,7 @@ class FCKeditor
 		return array_merge(
 			self::get_javascript_custom_configuration_file(),
 			self::get_css_configuration(),
-			$this->get_editor_language(),
+			self::get_editor_language(),
 			$this->get_repository_configuration(),
 			self::get_media_configuration(),
 			self::get_user_configuration_data(),
@@ -454,8 +454,8 @@ class FCKeditor
 			$editor_lang = file_exists(api_get_path(SYS_PATH).'main/inc/lib/fckeditor/editor/lang/'.$editor_lang.'.js') ? $editor_lang : 'en';
 			$config['DefaultLanguage'] = $editor_lang;
 			$text_direction = trim(get_lang('text_dir', ''));
-			if (!$this->Config['FullPage'] && !empty($text_direction) && strlen($text_direction) == 3) {
-				$this->Config['ContentLangDirection'] = $text_direction;
+			if (!empty($text_direction) && strlen($text_direction) == 3) {
+				$config['ContentLangDirection'] = $text_direction;
 			}
 		}
 		return $config;