Index: _source/core/config.js
===================================================================
--- _source/core/config.js (revision 5206)
+++ _source/core/config.js Tue Mar 23 19:18:40 CST 2010
@@ -76,14 +76,18 @@
/**
* The writting direction of the language used to write the editor
- * contents. Allowed values are 'ltr' for Left-To-Right language (like
- * English), or 'rtl' for Right-To-Left languages (like Arabic).
- * @default 'ltr'
+ * contents. Allowed values are:
+ *
+ * - 'ui' - which indicate content direction will be the same with the user interface language direction;
+ * - 'ltr' - for Left-To-Right language (like English);
+ * - 'rtl' - for Right-To-Left languages (like Arabic).
+ *
+ * @default 'ui'
* @type String
* @example
* config.contentsLangDirection = 'rtl';
*/
- contentsLangDirection : 'ltr',
+ contentsLangDirection : 'ui',
/**
* The user interface language localization to use. If empty, the editor
Index: _source/core/editor.js
===================================================================
--- _source/core/editor.js (revision 5249)
+++ _source/core/editor.js Tue Mar 23 19:22:52 CST 2010
@@ -146,6 +146,9 @@
if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 && editor.lang.dir == 'rtl' )
editor.lang.dir = 'ltr';
+ var config = editor.config;
+ config.contentsLangDirection == 'ui' && ( config.contentsLangDirection = editor.lang.dir );
+
loadPlugins( editor );
});
};