CKEditor RTL 问题

发布于 2024-09-29 16:35:38 字数 329 浏览 0 评论 0原文

我已将 language:'ar'contentsLangDirection:'rtl'contentsLanguage:'ar' 选项添加到使用初始化的 CKEditor 实例JQuery 适配器。但文本仍然左对齐。

它使用 dir='rtl'lang='ar' 声明 标记,但在每个 < p> 标签,它具有内联 text-align: left 样式。

我该如何摆脱这种风格?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晨与橙与城 2024-10-06 16:35:38

试试这个:

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

try this :

        <script type="text/javascript">
            CKEDITOR.config.contentsLangDirection='rtl';
            CKEDITOR.replace('editorX');
        </script>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文