Problem with CKEditor RTL

I added the parameters language:'ar', contentsLangDirection:'rtl', contentsLanguage:'ar'for my CKEditor instance, initialized using JQuery adapter. But the text is still flush.

It declares a tag <html> dir='rtl'and lang='ar', but on each tag <p>it has an inline style text-align: left.

How do I get rid of this style?

+3
source share
1 answer

try the following:

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

Source: https://habr.com/ru/post/1771894/


All Articles