diff --git a/addons/web_editor/static/src/js/backend/html_field.js b/addons/web_editor/static/src/js/backend/html_field.js index 5df4741eb97..6b6d1226db0 100644 --- a/addons/web_editor/static/src/js/backend/html_field.js +++ b/addons/web_editor/static/src/js/backend/html_field.js @@ -289,7 +289,11 @@ export class HtmlField extends Component { async updateValue() { const value = this.getEditingValue(); const lastValue = (this.props.value || "").toString(); - if (value !== null && !(!lastValue && stripHistoryIds(value) === "


") && value !== lastValue) { + if ( + value !== null && + !(!lastValue && stripHistoryIds(value) === "


") && + stripHistoryIds(value) !== stripHistoryIds(lastValue) + ) { this.props.setDirty(false); this.currentEditingValue = value; await this.props.record.update({ [this.props.name]: value });