Integration Pencil WYSIWYG into Django.
- sorl-thumbnail
INSTALLED_APPS = (
...
'sorl.thumbnail',
'django_pencil',
)
urlpatterns = patterns('',
...
url(r'^pencil/', include('django_pencil.urls', namespace='pencil')),
)
- https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
- http://malsup.github.com/jquery.form.js
manage.py syncdb
Add widget to admin.py
from django_pencil.widgets import PencilTextarea
class PageAdminForm(forms.ModelForm):
class Meta:
model = Page
widgets = {'content':PencilTextarea}