CKEditor and elFinder integration for Django Framework.
Project description
CKEditor and elFinder integration for Django Framework.
Provides a RichTextField and CKEditorWidget with upload and browse support.
Installation
pip install django-cked
or
pip install -e git+git://github.com/dead23angel/django-cked.git@master
Configuration
Add cked to your INSTALLED_APPS setting.
Then set ELFINDER_OPTIONS in your settings:
ELFINDER_OPTIONS = { ## required options 'root': os.path.join(PROJECT_ROOT, 'media', 'uploads'), 'URL': '/media/uploads/', }
And add CKEd URL include to your project urls.py file:
url(r'^cked/', include('cked.urls')),
Settings
CKEDITOR_OPTIONS: CKEditor config. See http://docs.ckeditor.com/#!/guide/dev_configuration
ELFINDER_OPTIONS: elFinder config. See https://github.com/Studio-42/elFinder/wiki/Client-configuration-options
Usage
Model field
from django.db import models from cked.fields import RichTextField class Entry(models.Model): text = RichTextField()
Widget
from django import forms from cked.widgets import CKEditorWidget class MyForm(forms.Form): text = forms.CharField(widget=CKEditorWidget)
NOTE: If you are using custom forms, dont’r forget to include form media to your template:
{{ form.media }}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-cked-0.1.4.tar.gz
(1.4 MB
view hashes)
Built Distribution
Close
Hashes for django_cked-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f1c219a8074b13949dfecd479fe41967f7d0f66886ebb081cf6711cc41b12d8 |
|
MD5 | 3027e598fe9cb7885deec52c908b5079 |
|
BLAKE2b-256 | a2d7ab82224ac8f74764cce0ba7558fd7ae2a962830409ab2962d5f528698424 |