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 4a15cf30a0f..57aabdac90f 100644 --- a/addons/web_editor/static/src/js/backend/html_field.js +++ b/addons/web_editor/static/src/js/backend/html_field.js @@ -385,7 +385,9 @@ export class HtmlField extends Component { } } _isDirty() { - return !this.props.readonly && this.props.value.toString() !== this.getEditingValue(); + const strippedPropValue = stripHistoryIds(String(this.props.value)); + const strippedEditingValue = stripHistoryIds(this.getEditingValue()); + return !this.props.readonly && strippedPropValue !== strippedEditingValue; } _getCodeViewEl() { return this.state.showCodeView && this.codeViewRef.el;