Skip to content
Snippets Groups Projects
Commit 73063ee4 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2035083 by Wim Leers: Fix body in-place editing in teasers by triggering formUpdated event.

parent 04a84d71
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -106,7 +106,14 @@ Drupal.editorAttach = function (field, format) {
field.removeAttribute('required');
}
// Attach the text editor.
Drupal.editors[format.editor].attach(field, format);
// Ensures form.js' 'formUpdated' event is triggered even for changes that
// happen within the text editor.
Drupal.editors[format.editor].onChange(field, function () {
$(field).trigger('formUpdated');
});
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment