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 hg+https://bitbucket.org/CWTeam/django-cked#egg=django-cked
Demo
We have prepared a demo project is available on the link https://github.com/DOOMer/django-cked-demo to demonstrate the application.
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
File details
Details for the file django-cked-0.1.0.zip.
File metadata
- Download URL: django-cked-0.1.0.zip
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c863cd7da9d6cf2197c0e0de76123e514d89ba3787d34218b71c14c8fff496bf
|
|
| MD5 |
fc51c55d132933be8a07849a2eef30f4
|
|
| BLAKE2b-256 |
c08f24229997f24ae51e22094ec6d2b643f23ae9dc6d7190107c9be2d9bceb68
|