Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/20tab/twentytab-tcked
- Owner: 20tab
- License: mit
- Created: 2014-03-08T19:59:27.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-02T14:47:45.000Z (about 10 years ago)
- Last Synced: 2024-11-17T00:39:44.286Z (about 1 month ago)
- Language: Python
- Size: 206 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 RichTextFieldEASY_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)```