[Django]-How can I install plugin into CkEditor, Django

4👍

From this thread

static files go into static files directory. If you put plugin ins a ckeditor/ckeditor/plugins subfolder it will work. Collectstatic will merge all files and folders and you will get typical ckeditor setup

So, put the plugin code in the static folder of your project, in static/ckeditor/ckeditor/plugins and it should work.

👤doru

6👍

Thank for your question. I just add html5audio plugin into djnago-ckeditor. Full path is:

  1. Download plugin from the official repo.
  2. Unzip html5audio directory into /path/to/your/project/static/ckeditor/ckeditor/plugins/ or /python/libs/ckeditor/static/ckeditor/ckeditor/plugins/ with all it’s content.
  3. Add html5audio plugin into your settings.py near other CKEDITOR variables:
CKEDITOR_CONFIGS = {
    'default': {
        'toolbar': 'full',
        'extraPlugins': ','.join(
            [
               'html5audio',
            ]
        ),
    },
}

4. Reload page with ckeditor widget :).

👤valex

Leave a comment