Skip to main content

CKEditor for editing entries in django-blog-zinnia

Project description

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',
    },
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zinnia-wysiwyg-ckeditor-1.3.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

zinnia_wysiwyg_ckeditor-1.3-py2.py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page