CKEditor and elFinder integration for Django Framework.
Project description
# Django CKEd
**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/ssbb/django-cked#egg=django-cked
## Configuration
Add `cked` to your `INSTALLED_APPS` setting.
Then set `ELFINDER_OPTIONS` in your settings:
:::python
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:
:::python
url(r'^cked/', include('cked.urls')),
## Settings
- **CKEDITOR_OPTIONS**: CKEditor config.
See [http://docs.ckeditor.com/#!/guide/dev_configuration](http://docs.ckeditor.com/#!/guide/dev_configuration)
- **ELFINDER_OPTIONS**: elFinder config.
See [https://github.com/Studio-42/elFinder/wiki/Client-configuration-options](https://github.com/Studio-42/elFinder/wiki/Client-configuration-options)
## Usage
### Model field
:::python
from django.db import models
from cked.fields import RichTextField
class Entry(models.Model):
text = RichTextField()
### Widget
:::python
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 }}
**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/ssbb/django-cked#egg=django-cked
## Configuration
Add `cked` to your `INSTALLED_APPS` setting.
Then set `ELFINDER_OPTIONS` in your settings:
:::python
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:
:::python
url(r'^cked/', include('cked.urls')),
## Settings
- **CKEDITOR_OPTIONS**: CKEditor config.
See [http://docs.ckeditor.com/#!/guide/dev_configuration](http://docs.ckeditor.com/#!/guide/dev_configuration)
- **ELFINDER_OPTIONS**: elFinder config.
See [https://github.com/Studio-42/elFinder/wiki/Client-configuration-options](https://github.com/Studio-42/elFinder/wiki/Client-configuration-options)
## Usage
### Model field
:::python
from django.db import models
from cked.fields import RichTextField
class Entry(models.Model):
text = RichTextField()
### Widget
:::python
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.0.6.tar.gz
(1.0 MB
view details)
File details
Details for the file django-cked-0.0.6.tar.gz.
File metadata
- Download URL: django-cked-0.0.6.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
962b1027432e465a50b02cae158ad52ef71eace4d411325c94e3ed283254310e
|
|
| MD5 |
1c8144b1911235c6c30e6ff3254eddeb
|
|
| BLAKE2b-256 |
d34e651b358436dd1ea13ee3df869e2890838ea5bc9fa13cea9a9c93330d6463
|