A simple django text editor widget using WCTeditor
JavaScript Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
screenshots
wcteditor
.gitignore
README.md

README.md

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:

     ./manage.py collectstatic
    
  • 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)
    

How does it looks like?

sample screenshot