Skip to content

New ckeditor with elfinder. Forked from django-cked by Svyatoslav Bulbakha

License

Notifications You must be signed in to change notification settings

rapto/django-cked

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django CKEd

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 }}

About

New ckeditor with elfinder. Forked from django-cked by Svyatoslav Bulbakha

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published