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:
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 }}
Metadata
Release files for django-cked-fc 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-cked-fc-0.1.1.zip | 1.3 MB | Without provenance | Details for django-cked-fc-0.1.1.zip |
Release files / django-cked-fc-0.1.1.zip
| Download URL | django-cked-fc-0.1.1.zip |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24be7317a6844618e92fdb1acbb5be84cd9efc784ddb56c9e37fe28d5ebd2f87
|
|
BLAKE2b-256 checksum How to use checksums |
34676df68c2b33d1ef000ba65ff75186237f61322377b8d1d2645833828d7a0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-cked-fc 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.