Django: как добавить плагины ckeditor в мой проект с помощью django

я хочу добавить некоторые плагины к моему ckeditor django, я установил пакет с помощью pip, установил его в settings.py и он теперь работает, но я хочу добавить еще несколько кнопок в ckeditor, так как все что есть сейчас это bold, align, media, emoji и некоторые другие, но мне нужны некоторые функции как code-snippets и т.д. так где я должен добавить эти плагины, которые я скопировал из документации https://django-ckeditor.readthedocs.io/en/latest/#installation

a11yhelp, about, adobeair, ajax, autoembed, autogrow, autolink, bbcode, clipboard, codesnippet,
codesnippetgeshi, colordialog, devtools, dialog, div, divarea, docprops, embed, embedbase,
embedsemantic, filetools, find, flash, forms, iframe, iframedialog, image, image2, language,
lineutils, link, liststyle, magicline, mathjax, menubutton, notification, notificationaggregator,
pagebreak, pastefromword, placeholder, preview, scayt, sharedspace, showblocks, smiley,
sourcedialog, specialchar, stylesheetparser, table, tableresize, tabletools, templates, uicolor,
uploadimage, uploadwidget, widget, wsc, xml

см. пример конфигурации и ExtraPlugins: https://django-ckeditor.readthedocs.io/en/latest/#example-ckeditor-configuration

CKEDITOR_CONFIGS = {
    'default': {
        'skin': 'moono',
        # 'skin': 'office2013',
        'toolbar_Basic': [
            ['Source', '-', 'Bold', 'Italic']
        ],

...

        'tabSpaces': 4,
        'extraPlugins': ','.join([
            'uploadimage', # the upload image feature
            # your extra plugins here
            'div',
            'autolink',
            'autoembed',
            'embedsemantic',
            'autogrow',
            # 'devtools',
            'widget',
            'lineutils',
            'clipboard',
            'dialog',
            'dialogui',
            'elementspath'
        ]),
    }
}
Вернуться на верх