django-summernote: Editor not loading for inline TextField
Summernote is not loading for an inline model admin.
I have an inline model:
class ModelAInline(admin.StackedInline, SummernoteInlineModelAdmin):
model = ModelA
extra = 1
class ModelBAdmin(SummernoteModelAdmin):
...
inlines = [ModelAInline]
admin.site.register(ModelB, ModelBAdmin)
ModelB has a TextField which is loading with summernote widget correctly. ModelA has a TextField but it’s not loading correctly, it just displays a white section, iframe doesn’t seem to be loading.
I found the following JS warnings on console:
ReferenceError: content_iframe is not defined
ReferenceError: __prefix__ is not defined
Both JS errors point to line “32 > eval:1”, referring, I think, to:
eval("settings = window.parent.settings_id_modela_set-0-content/ line 32 > eval_iframe;");
I’am using version 0.5.12
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 17 (7 by maintainers)
I’ve the same problem as @boylesnick, saving inline contents for the first time. -Admin.py
Note: I’m using Grappelli