1

我的TextField一个表格上有一个 for 描述,我想为此应用 reich 文本编辑器,所以尝试使用这个包,但我无法让它工作

以下是我的设置

设置.py

INSTALLED_APPS = (
    .....
    ..... 
    # Description Rich text editor settings
    'tinymce',
    'django_wysiwyg',
)

DJANGO_WYSIWYG_FLAVOR = "tinymce"

模板.html

{% extends "base.html" %}
{% load wysiwyg %}
{% wysiwyg_setup %}

<form enctype="multipart/form-data" action="{% url 'product_create' %}" method="post">

    <div class="marg_tp38 span12">
         {{product_form.name}}
         {% wysiwyg_editor 'id_name' %}
    </div>
    <div class="marg_tp38 span12">
         {{product_form.description}}
         {% wysiwyg_editor 'inputdescription_id' %}
    </div>
</form>

以上是我使用的设置,但我无法完成这项工作,谁能告诉我我错过了什么?以及应该做些什么才能使其发挥作用?

4

1 回答 1

1
于 2013-12-07T01:11:58.767 回答