Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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='ar', but on each <p> tag, it has an inline text-align: left style.

How do I get rid of that style?

like image 648
HyderA Avatar asked Feb 10 '26 20:02

HyderA


1 Answers

try this :

        <script type="text/javascript">
            CKEDITOR.config.contentsLangDirection='rtl';
            CKEDITOR.replace('editorX');
        </script>
like image 72
lasitha Avatar answered Feb 13 '26 08:02

lasitha



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!