我添加了 language:'ar'
, contentsLangDirection:'rtl'
, contentsLanguage:'ar'
使用 JQuery 适配器初始化我的 CKEditor 实例的选项。但文本仍然左对齐。
它声明了 <html>
用 dir='rtl'
标记和 lang='ar'
, 但在每个 <p>
标签,它有一个内联 text-align: left
风格。
我如何摆脱这种风格?
最佳答案
试试这个:
<script type="text/javascript">
CKEDITOR.config.contentsLangDirection='rtl';
CKEDITOR.replace('editorX');
</script>
关于javascript - CKEditor RTL问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4041290/