Ticket #4968: 4968_3.patch

File 4968_3.patch, 1.5 KB (added by Garry Yao, 14 years ago)
  • _source/core/config.js

     
    7676
    7777        /**
    7878         * 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'
    8286         * @type String
    8387         * @example
    8488         * config.contentsLangDirection = 'rtl';
    8589         */
    86         contentsLangDirection : 'ltr',
     90        contentsLangDirection : 'ui',
    8791
    8892        /**
    8993         * The user interface language localization to use. If empty, the editor
  • _source/core/editor.js

     
    146146                                if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 && editor.lang.dir == 'rtl' )
    147147                                        editor.lang.dir = 'ltr';
    148148
     149                                var config = editor.config;
     150                                config.contentsLangDirection == 'ui' && ( config.contentsLangDirection = editor.lang.dir );
     151
    149152                                loadPlugins( editor );
    150153                        });
    151154        };
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy