diff --git a/addons/website/static/src/js/editor/wysiwyg.js b/addons/website/static/src/js/editor/wysiwyg.js index 038b5385411..f9e1403f345 100644 --- a/addons/website/static/src/js/editor/wysiwyg.js +++ b/addons/website/static/src/js/editor/wysiwyg.js @@ -119,6 +119,13 @@ Wysiwyg.include({ throw new Error('There should be a model and id associated to the cover'); } + // The cover might be dirty for another reason than cover properties + // values only (like an editable text inside). In that case, do not + // update the cover properties values. + if (!('coverClass' in el.dataset)) { + return; + } + this.__savedCovers = this.__savedCovers || {}; this.__savedCovers[resModel] = this.__savedCovers[resModel] || [];