Skip to main content

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.

CKEditor elFinder

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

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


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-fc-0.1.zip (1.3 MB view details)

Uploaded Source

File details

Details for the file django-cked-fc-0.1.zip.

File metadata

  • Download URL: django-cked-fc-0.1.zip
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-cked-fc-0.1.zip
Algorithm Hash digest
SHA256 6cd99e74aaee01ca4155837ddbece8bef4af00d9fbe006a16ab949463fad38ab
MD5 657f2199091e52eedf7cd6c84ce88967
BLAKE2b-256 d09c88b29c84a42e162d6a22e9f4ffb7f9b93df2aadd58b1e0519e44c0f03e6d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page