Skip to main content

Ckeditor integration with Django admin.

Project description

Basically this is just the CKEditor javascript files with a 'fields.py'
file providing a 'RichTextField' and a 'CkeditorWidget' that attaches
the proper javascript to the form field widget.


1. Declare a model with a 'RichTextField'.
2. in the admin.py, use the formfield overrides to add the CKeditor widget
to rich text fields.


--- models.py ---
from ckeditor.fields import RichTextField

class SampleModel(models.Model):
description = RichTextField()

--- admin.py ---
from ckeditor.fields import RichTextField, CkeditorWidget

class SampleModelAdmin(admin.ModelAdmin):
formfield_overrides = {
RichTextField: {'widget': CkeditorWidget},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-admin-ckeditor, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-admin-ckeditor-0.0.1.tar.gz (541.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page