Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

CKEditor and elFinder integration for Django Framework.

Project Description
Django CKEd
===========

A django application that use django-cked as texteditor. It update RichTextField with config parameter

For more informations about django-cked follow this link: https://bitbucket.org/ssbb/django-cked/overview

**IMPORTANT! The application is no longer supported. Please do not use it!

**CKEditor and elFinder integration for Django Framework.**

Provides a ``RichTextField`` and ``CKEditorWidget`` with upload and
browse support.

|CKEditor| |elFinder|

Installation
------------

::

pip install twentytab-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

EASY_CKE = {
'height': 200,
'width':400,
'enterMode': 2, #Remove the default <p> tag around text
'forcePasteAsPlainText': True,
'toolbar': [['Bold', 'Italic', 'Underline', '-',
'JustifyLeft', 'JustifyCenter', 'JustifyRight',
'JustifyBlock', '-', 'Link', 'Unlink', '-', 'Source']],
}

class Entry(models.Model):
text = RichTextField(config=EASY_CKE)

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

.. |CKEditor| image:: https://bitbucket.org/ssbb/django-cked/raw/default/img/ckeditor.jpg
.. |elFinder| image:: https://bitbucket.org/ssbb/django-cked/raw/default/img/elfinder.jpg
Release History

Release History

This version
History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
twentytab-cked-0.5.tar.gz (984.6 kB) Copy SHA256 Checksum SHA256 Source Dec 9, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting