question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Editor not loading for inline TextField

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
g-abellocommented, Jul 16, 2014

I’ve the same problem as @boylesnick, saving inline contents for the first time. -Admin.py

class ModelAInLine(admin.StackedInline,SummernoteInlineModelAdmin): 
    model = ModelA
    extra = 1 
    fieldsets = [
        ('Fieldset1', {
            'fields': ['field1','field2','field3'],
            'classes': ['grp-collapse grp-closed'],}),
        ('Fieldset2', {
            'fields': ['field4','field5','field6'],
            'classes': ['grp-collapse grp-closed'],}),
    ]

class ModelBAdmin(SummernoteModelAdmin):
    fields = ['name','category','description']
    inlines = [ModelAInLine]

admin.site.register(ModelA, SummernoteModelAdmin)
admin.site.register(ModelB, ModelBAdmin)

Note: I’m using Grappelli

0reactions
lqezcommented, Feb 22, 2018
screen shot 2018-02-22 at 2 53 59 pm Sorry for letting this issue alone, but it looks like fine now.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Inline Text Editor not working on textarea
I used a plugin Inplace Editor(https://github.com/wbotelhos/inplace) for inline editing for a profile page of a website. For some texts in ...
Read more >
TinyMCE inline option not working? FAQs and Solution
The main reason for the TinyMCE inline option not working is that a textarea element doesn't work with inline mode.
Read more >
Inline editor sometimes not working
I have working code that only fully works when I do a hard refresh on the page. In this case, the inline "td"...
Read more >
Inline Editor not accepting input in Kendo UI for jQuery
Hi, I have been trying to use the new inline editing capability, but the editor will not take any keyboard our mouse input....
Read more >
Inline Edit of Rich Text Area Field Does Not Support ...
This is because inline editing in Lightning uses the Input Rich Text Lightning Web Component. As per the documentation:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found