No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fantomas42 Merge tag 'v1.3' into develop
zinnia-wysiwyg-ckeditor v1.3
Latest commit 79143b9 Sep 18, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo_zinnia_ckeditor
zinnia_ckeditor
.gitignore
LICENSE
MANIFEST.in Prepare MANIFEST template Jun 30, 2014
README.rst Update install process, close #6 Apr 28, 2015
bootstrap.py
buildout.cfg Updating components Sep 18, 2015
setup.cfg
setup.py
versions.cfg

README.rst

zinnia-wysiwyg-ckeditor

Zinnia-wysiwyg-ckeditor is a package allowing you to edit your entries with CKEditor.

Installation

  • Install the package on your system:

    $ pip install zinnia-wysiwyg-ckeditor
    

    django-ckeditor will also be installed as a dependency.

  • Install and configure django-ckeditor if not already done.

  • Register the 'zinnia_ckeditor' in your INSTALLED_APPS after the 'zinnia' application.

You are done !

Configuration

You can customize the CKEditor instance by defining a zinnia-content configuration into the CKEDITOR_CONFIGS setting.

If the zinnia-content configuration is not found, the default configuration will be used.

Example of configuration:

CKEDITOR_CONFIGS = {
    'default': {
        'toolbar': 'Full',
    },
    'zinnia-content': {
        'toolbar_Zinnia': [
            ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'],
            ['Undo', 'Redo'],
            ['Scayt'],
            ['Link', 'Unlink', 'Anchor'],
            ['Image', 'Table', 'HorizontalRule', 'SpecialChar'],
            ['Source'],
            ['Maximize'],
            '/',
            ['Bold', 'Italic', 'Underline', 'Strike',
             'Subscript', 'Superscript', '-', 'RemoveFormat'],
            ['NumberedList', 'BulletedList', '-',
             'Outdent', 'Indent', '-', 'Blockquote'],
            ['Styles', 'Format'],
        ],
        'toolbar': 'Zinnia',
    },
}