Skip to content

Commit

Permalink
Merge pull request #258 from frague59/master
Browse files Browse the repository at this point in the history
Use the arrow notation to call the createEditors() function on `form…
  • Loading branch information
hvlads authored Oct 8, 2024
2 parents 60e6e2a + c045fdc commit 25e4c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_ckeditor_5/static/django_ckeditor_5/app.js
Original file line number Diff line number Diff line change
@@ -156,7 +156,7 @@ document.addEventListener("DOMContentLoaded", () => {
createEditors();

if (typeof django === "object" && django.jQuery) {
django.jQuery(document).on("formset:added", createEditors);
django.jQuery(document).on("formset:added", () => {createEditors()});
}

const observer = new MutationObserver((mutations) => {

0 comments on commit 25e4c37

Please sign in to comment.