django-wcteditor is a simple Django widget for textareas built reusing the simple WCTeditor.
Installation / Usage
Include ´wcteditor´ subdirectory into yoir project's folder.
If you are using a previous version to Django 1.3, please copy static/wcteditor directory into STATIC_ROOT directory. If you are using Djago 1.3 run:
django-wcteditor need jquery and jquery-tmpl installed in your STATIC_ROOT directory. Please install them.
Add ´wcteditor´ to INSTALLED_APPS in ´settings.py´.
Import ´wcteditor´ widget class and use it in your forms:
from django import forms from myapp.models import MyModel from wcteditor.widgets import WCTeditor class MyForm(forms.Form): summary = forms.CharField(widget=WCTeditor()) other_field = forms.CharField(max_length=10)