<commit_before>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,
        'forcePasteAsPlainText': True,
        'toolbar': [['Bold', 'Italic', 'Underline', '-',
                     'JustifyLeft', 'JustifyCenter', 'JustifyRight',
                     'JustifyBlock', '-', 'Link', 'Unlink', '-', 'Source']],
    }

    class Entry(models.Model):
        text = RichTextField(config=EASY_CKE)<commit_msg>add example settings parameter to remove <p> tag<commit_after>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)
{'fraction_non_alphanumeric': 0.16048683838097932, 'fraction_numerical': 0.004811774695726012, 'mean_word_length': 3.0388571428571427, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7072505', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1086, 'n_words': 289}