We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1f4890 + cee3869 commit 75ca845Copy full SHA for 75ca845
django_editorjs_fields/static/django-editorjs-fields/js/django-editorjs-fields.js
@@ -163,10 +163,12 @@
163
// Event
164
if (typeof django === "object" && django.jQuery) {
165
django.jQuery(document).on("formset:added", function (event, $row) {
166
- var textarea = $row.find("[data-editorjs-textarea]").get(0)
+ var areas = $row.find("[data-editorjs-textarea]").get()
167
168
- if (textarea) {
169
- initEditorJsField(textarea)
+ if (areas) {
+ for (let i = 0; i < areas.length; i++) {
170
+ initEditorJsField(areas[i])
171
+ }
172
}
173
})
174
0 commit comments