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

Uploaded Source

Built Distribution

zinnia_wysiwyg_ckeditor-1.2-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for zinnia-wysiwyg-ckeditor-1.2.tar.gz
Algorithm Hash digest
SHA256 814e739aeb6e4014efbff4ab63a75a3fb5e1781ccf55d4b2f54ac9813c8c3eb1
MD5 fc5381dc3f9fc715c8403d82784bdd21
BLAKE2b-256 74eb4a5c1d133df9ad1291a3642d9be034dde4d15bc774b38c504f1b96dd9f1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zinnia_wysiwyg_ckeditor-1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 823c032487f2d061b7ba983b85c5649848f30b278e9b8cc049e6db5d0e782910
MD5 6663e1b5c0a30e59f6e281c7280a84f1
BLAKE2b-256 ff306837844840b5e14153affa5cfdef7d6f24a66a17fff615976465e41fe386

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