===========
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
Metadata
Release files for twentytab-cked 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| twentytab-cked-0.5.tar.gz | 984.6 kB | Without provenance | Details for twentytab-cked-0.5.tar.gz |
Release files / twentytab-cked-0.5.tar.gz
| Download URL | twentytab-cked-0.5.tar.gz |
|---|---|
| Size | 984.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa0eea599b0978e6fcc7c92ffbf73a5af5c103aa581d920fa5ac3a2514922ae8
|
|
BLAKE2b-256 checksum How to use checksums |
9363409b0002444ec66ad62ca04d3be427c40a68e6d6cbd73d7c417477c76525
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for twentytab-cked 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.