开发者

CKEditor RTL issue

开发者 https://www.devze.com 2023-01-22 04:08 出处:网络
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.

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消