CodeSnippet从右向左显示问题

时间:2019-01-21 12:36:04

标签: javascript django ckeditor

您好,我正在使用ckiditor,并且在其中使用CodeSnippet 它从右到左显示 像这样https://dzblog.pythonanywhere.com/media/Images/Screenshot_2019-01-21_jkgjfghfghfghfghfghfghfgh1.png

并在我的base.html中 我设置

 <body class = 'rtl'>
   <!-- content-->
 </body>

我知道,但是网站使用“ AR”作为默认语言

有人可以帮我从左到右显示CodeSnippet

谢谢

这是ckeditor的影响力(article.html)

<div class="col-lg-10">

<p class="h6 pr3 " style="border-bottom: 2px #eee solid ; padding-bottom: 3em;direction: ltr !important;">
    {{art.body|safe}}

</p>

<p class="lead" style="margin-top: 4em;">  source <span style="color: #32234b">{{art.source}}</span></p>

</div>

model.py

 class articles(models.Model):
     article_author = models.ForeignKey(User, on_delete=models.CASCADE)
     category = models.ForeignKey(Category, null=True, blank=True, on_delete=models.CASCADE)
     avatar = models.ForeignKey(author, on_delete = models.CASCADE)
     likes = models.ManyToManyField(User, related_name='likes', blank=True)


     title = models.CharField('العنوان', max_length=200)
     image = models.ImageField('صورة مناسبة', upload_to = 'Images')
     taker_image = models.CharField('ملتقط الصورة', max_length=200)
     source = models.CharField('المصدر', max_length=200)
     body = RichTextUploadingField('المقال',  blank = True, null = False, config_name = 'special',
                                                            extra_plugins=['youtube', 'codesnippet'],
                                                            external_plugin_resources = [(
                                                            'youtube',
                                                            '/media/youtube/youtube/',
                                                            'plugin.js',

                                                                         )],
                                                                    )


     posted_on = models.DateTimeField(auto_now=False, auto_now_add=True)
     updated_on = models.DateTimeField(auto_now=True, auto_now_add=False)

0 个答案:

没有答案