Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/20tab/twentytab-tcked

A django application that use cked as texteditor. It update RichTextField with config parameter
https://github.com/20tab/twentytab-tcked

Last synced: 21 days ago
JSON representation

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

Awesome Lists containing this project

README

        

NO LONGER MAINTAINED
===================
This repository is no longer maintained, please switch at: https://github.com/20tab/twentytab-cked/

twentytab-tcked
===============

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

## Installation

Use the following command: pip install twentytab-tcked

and

pip install -e hg+https://bitbucket.org/ssbb/django-cked#egg=django-cked

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

## Configuration

- settings.py

```py
INSTALLED_APPS = {
...,
'cked',
'tcked',
...
}
```

- urls.py

```py
urlpatterns = patterns('',
... ,
url(r'^cked/', include('cked.urls')),
...
)

```

- Static files

Run collectstatic command or map static directory. If you use uWSGI you can map static files:

```ini
static-map = /static/cked/=%(path_to_site_packages)/cked/static/cked
```

## Usage

```py
from django.db import models
from tcked.fields import RichTextField

EASY_CKE = {
'height': 200,
'width':400,
'forcePasteAsPlainText': True,
'toolbar': [['Bold', 'Italic', 'Underline', '-',
'JustifyLeft', 'JustifyCenter', 'JustifyRight',
'JustifyBlock', '-', 'Link', 'Unlink', '-', 'Source']],
}
class Entry(models.Model):
text = RichTextField(config=EASY_CKE)

```