Skip to content
This repository was archived by the owner on Dec 30, 2020. It is now read-only.
This repository was archived by the owner on Dec 30, 2020. It is now read-only.

Widgets fail to render if multiple CodeEditorWidgets are used in a form #1

@mattaustin

Description

@mattaustin

When using the following form in an admin class, neither html or css ace editors are rendered correctly:

Class PageAdminForm(models.ModelForm):
    html = forms.CharField(widget=ace_editor.CodeEditorWidget(mode='html'))
    css = forms.CharField(widget=ace_editor.CodeEditorWidget(mode='css'))

    class Meta(object):
        model = Page

In the above example, the ace editor is rendered for html, but does not correctly show the content, and the editor for css is broken but with content displayed. If I remove one of these, then the remaining widget is correctly shown.

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