Commit [1] added a check for the closest ".o_dirty" editable element in order to define which editable is used for obtaining the model and id reference from its dataset, and also to avoid multiple attachment creation for the same image. But such check for the closest ".o-dirty" element evaluates to null when the Wysiwyg is used by the HtmlField component, as such class is not added to editable when saving/committing changes. This resulted in skipping the attachment creation for pasted, dropped or modified images. After this commit, attachment creation for modified images is not skipped if an element with the ".o_dirty" class does not exist. task-3495668 [1]: https://github.com/odoo/odoo/commit/e631bff05a3588f3304b75b6a0018b096c13f68d Part-of: odoo/odoo#135806