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.

  • 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.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

zinnia_wysiwyg_ckeditor-1.1-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file zinnia-wysiwyg-ckeditor-1.1.tar.gz.

File metadata

File hashes

Hashes for zinnia-wysiwyg-ckeditor-1.1.tar.gz
Algorithm Hash digest
SHA256 6bd70c77c7c3a0c3b9e3a3dc5d8ea5699d7a550d38ab664cd49ff630c690ce9e
MD5 9a3e7a1a3a6830cacf816a5fde46de8d
BLAKE2b-256 3875ab34c7c46dd64032bfc157cc7cad57b34b418c224870ead9729311bf15d5

See more details on using hashes here.

File details

Details for the file zinnia_wysiwyg_ckeditor-1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for zinnia_wysiwyg_ckeditor-1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7160761c051f3f439343cda704aa78cea350aaa45df1fdf929efd1c4e81974f5
MD5 220d1a29e28f54ee64d8d09e7375b64e
BLAKE2b-256 868dfb46c23ef4b24de6a3a2681abbf18e8213b488d1ad75578b29fe3c6b842e

See more details on using hashes here.

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