Ticket #4968: 4968_2.patch
File 4968_2.patch, 1.8 KB (added by , 14 years ago) |
---|
-
_source/core/config.js
76 76 77 77 /** 78 78 * The writting direction of the language used to write the editor 79 * contents. Allowed values are 'ltr' for Left-To-Right language (like 80 * English), or 'rtl' for Right-To-Left languages (like Arabic). 81 * @default 'ltr' 79 * contents. Allowed values are: 80 * <ul> 81 * <li>'ui' - which indicate content direction will be the same with the user interface language direction;</li> 82 * <li>'ltr' - for Left-To-Right language (like English);</li> 83 * <li>'rtl' - for Right-To-Left languages (like Arabic).</li> 84 * </ul> 85 * @default 'ui' 82 86 * @type String 83 87 * @example 84 88 * config.contentsLangDirection = 'rtl'; 85 89 */ 86 contentsLangDirection : ' ltr',90 contentsLangDirection : 'ui', 87 91 88 92 /** 89 93 * The user interface language localization to use. If empty, the editor … … 304 308 baseFloatZIndex : 10000 305 309 }; 306 310 311 CKEDITOR.on( 'langLoaded', function( evt ) 312 { 313 var editor = evt.data, 314 config = editor.config; 315 316 config.contentsLangDirection == 'ui' && ( config.contentsLangDirection = editor.lang.dir ); 317 }); 307 318 // PACKAGER_RENAME( CKEDITOR.config ) -
_source/core/editor.js
146 146 if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 && editor.lang.dir == 'rtl' ) 147 147 editor.lang.dir = 'ltr'; 148 148 149 CKEDITOR.fire( 'langLoaded', editor ); 150 editor.fireOnce( 'langLoaded' ); 151 149 152 loadPlugins( editor ); 150 153 }); 151 154 };