Open salomvary opened 3 years ago
@salomvary Why does it only work with your fork?
Because of the reasons mentioned in the description of this issue above?
@salomvary I apologize, I am totally blanking on this one. Is this something I brought up?
@salomvary Hello. Thanks for your fork, summernote now works without an iframe. But there is one problem: photos are not loaded from the file system. Do you know what the problem might be?
@salomvary Hello. Thanks for your fork, summernote now works without an iframe. But there is one problem: photos are not loaded from the file system. Do you know what the problem might be?
No, unfortunately I don't know, I don't use the widget with photos in any way.
I've found another issue where dynamically added Summernote widgets as part of form inlines do not properly get initialized. Workaround here: https://github.com/salomvary/django-summernote/commit/ddd27373813001b061f328b1e9d218e51b0b8881
First of all, thanks for making an easy Django+Summernote integration happen!
I've spent several hours today trying to set up the Summernote widget on the admin site without using iframes. This was caused by a series of issues:
$
orjQuery
.admin/base.html
template (see below).SUMMERNOTE_THEME = "lite"
.There might be an easy way to get all this working but it's not obvious from the documentation/source code.
I'm using the following settings:
...and
admin/base
looks like this:But all this only works with my hacky fork: https://github.com/salomvary/django-summernote