Skip to content

EditionOpenAccess/django-eoackeditor

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Additional features for CKEditor

To add buttons, modify the plugins.js found in djangocms_text_ckeditor/ckeditor/plugins/eoa/ and register the button in the CKEDITOR_SETTINGS.

See https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_plugins.html for reference.

Copy the directory tree djangocms_text_ckeditor into the static directory of the CMS-enabled site and add the following to settings.py.

CKEDITOR_SETTINGS = {
    # 'stylesSet': 'default:/static/editor/styles/js/ckeditor.addstyles.js',
    'toolbar': 'EOA',
    # 'toolbar': 'CMS', # this was the default
    'toolbar_EOA': [
        # defaults, copied from ./env/lib/python3.7/site-packages/djangocms_text_ckeditor/static/djangocms_text_ckeditor/js/cms.ckeditor.js
        ['Undo', 'Redo'],
        ['cmsplugins', 'cmswidget', '-', 'ShowBlocks'],
        ['Format', 'Styles'],
        ['TextColor', 'BGColor', '-', 'PasteText', 'PasteFromWord'],
        ['Scayt'],
        ['Maximize', ''],
        '/',
        ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript', '-', 'RemoveFormat'],
        ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
        ['HorizontalRule'],
        ['NumberedList', 'BulletedList'],
        ['Outdent', 'Indent', '-', 'Blockquote', '-', 'Link', 'Unlink', '-', 'Table'],
        ['Source'],
        ['Eoa-expandable'],

    ],
    'extraPlugins': 'eoa',
}

About

Extension for CKEditor

Resources

Stars

Watchers

Forks

Releases

No releases published