django-wysiwyg-redactor 的 table 插件按钮未显示在工具栏上
django-wysiwyg-redactor's table plugin button is not showing on the toolbar
我正在使用 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-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
好吧,我搞砸了! 我使用的是旧版本的编辑器。在上一个版本中修复了这个错误。