CKEditor RTL issue
I've added language:'ar'
, contentsLangDirection:'rtl'
, contentsLanguage:'ar'
options to my CKEditor instance being initialized using the JQuery adapter. But the text is still left aligned.
It declares the <html>
tag with dir='rtl'
and lang开发者_如何学Python='ar'
, but on each <p>
tag, it has an inline text-align: left
style.
How do I get rid of that style?
try this :
<script type="text/javascript">
CKEDITOR.config.contentsLangDirection='rtl';
CKEDITOR.replace('editorX');
</script>
精彩评论