HyderA
HyderA

Reputation: 21401

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?

Upvotes: 3

Views: 1828

Answers (1)

lasitha
lasitha

Reputation: 51

try this :

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

Upvotes: 5

Related Questions