Skip to content

Editorjs form field doesn't render in template #50

@azaitsev

Description

@azaitsev

I use following form:

class EditForm(forms.Form):
    title = forms.CharField(...)
    content = EditorJsWidget(config={'minHeight': 100})

and following template code for rendering:

{% for field in form %}
    <div class="mydiv">
        <label class="mylabel">{{ field.label }}</label>
        {{ field }}
    </div>
{% endfor %}

I see my title field but no content field. What I'm missing?

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