Skip to content

django-summernote, path/plugins empty #10

@mariuspana

Description

@mariuspana

Hello,

Im trying to use this plugin with django-summernote and while it seems to load I cannot get it to display any of my templates: the list of templates is empty and if I click it tries to access /undefined.html. Here is the relevant part of my config and wondering whether I am missing something?

'toolbar': [
['style', ['bold', 'italic', 'underline', 'strikethrough', 'color']],
['para', ['ul', 'ol', 'paragraph', 'link']],
['insert', ['picture', 'video', 'table', 'hr']],
['misc', ['undo', 'redo']],
['insert', ['template']],
],
'template': {
'path': '/static/tpls',
'list': {
'pending-close': 'Pending close',
}
},
'js': (
'/static/js/summernote-ext-template.js',
),
'js_for_inplace': (
'/static/js/summernote-ext-template.js',
),

The reason I say is is empty is because I added some console.logs to summernote-ext-template.js and the path as well as options.list are empty.

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions