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='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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With