代码之家  ›  专栏  ›  技术社区  ›  HyderA

CKEditor RTL问题

  •  3
  • HyderA  · 技术社区  · 15 年前

    language:'ar' , contentsLangDirection:'rtl' , contentsLanguage:'ar' 使用JQuery适配器初始化的CKEditor实例的选项。但是文本仍然是左对齐的。

    <html> dir='rtl' lang='ar' <p> 标记,它有一个内联 text-align: left

    我怎样才能摆脱那种风格?

    1 回复  |  直到 15 年前
        1
  •  5
  •   lasitha    14 年前

            <script type="text/javascript">
                CKEDITOR.config.contentsLangDirection='rtl';
                CKEDITOR.replace('editorX');
            </script>