【问题标题】:django-wysiwyg-redactor's table plugin button is not showing on the toolbardjango-wysiwyg-redactor 的表格插件按钮未显示在工具栏上
【发布时间】:2016-01-03 23:52:16
【问题描述】:

我正在使用django-wysiwyg-redactor。 Redactor 显示和工作正常,但 Table 插件不工作。它甚至没有显示在工具栏上。这就是我所拥有的:

class MyModel(models.Model):
    title = models.CharField(max_length=60)
    text = RedactorField(redactor_options={
                             'lang': 'en',
                             'plugins': ['table']
                         })

class CreateMyModelForm(forms.ModelForm):

    class Meta:
        model = MyModel
        fields = '__all__'


{% load static %}
{% load crispy_forms_tags %}

<script>var RedactorPlugins = {};</script>
    <div class="col-md-6 col-md-offset-3">
      {{ form.media }}
      {% crispy form %}
    </div>

我做错了什么?以及如何解决这个问题?

Django 版本是 1.8.4

【问题讨论】:

    标签: django wysiwyg django-wysiwyg


    【解决方案1】:

    好吧,我搞砸了! 我使用的是旧版本的编辑器。在上一个版本中,此错误已修复。

    【讨论】:

      猜你喜欢
      • 2013-11-29
      • 1970-01-01
      • 1970-01-01
      • 2015-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多