Skip to content
This repository has been 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

Open
mattaustin opened this issue Apr 8, 2012 · 0 comments

Comments

@mattaustin
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant