Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django-summernote, path/plugins empty #10

Open
mariuspana opened this issue Aug 21, 2019 · 0 comments
Open

django-summernote, path/plugins empty #10

mariuspana opened this issue Aug 21, 2019 · 0 comments

Comments

@mariuspana
Copy link

mariuspana commented Aug 21, 2019

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

@mariuspana mariuspana changed the title django-summernote, path/plugins emty django-summernote, path/plugins empty Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant