Skip to main content

A CKEditor widget for Django that includes an admin mixin.

Project description

A CKEditor widget for Django that includes an admin mixin.

How to use

Install using pip:

pip install django-ckeditor-widget

Then use as any other widget:

from django import forms
from ckeditor_widget.widgets import CKEditorWidget

class MyForm(forms.Form):
    body = forms.TextField(widget=CKEditorWidget)

Make sure that CKEditor is provided in static files as ckeditor/ckeditor.js.


The app conveniently provides an admin mixin that uses CKEditor for all text fields. Simply inherit from the mixin:

from django.contrib import admin
from ckeditor_widget.admin import CKEditorAdminMixin
from myapp import models

class ProductAdmin(CKEditorAdminMixin, admin.ModelAdmin):

Akternatively, specify formfield_overrides:

formfield_overrides = {
    models.TextField: {'widget': CKEditorWidget}

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for django-ckeditor-widget, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_ckeditor_widget-0.1-py2.py3-none-any.whl (5.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-ckeditor-widget-0.1.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page