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 85dd221a7a0..563d7a69b03 100644 --- a/addons/web_editor/static/src/js/backend/html_field.js +++ b/addons/web_editor/static/src/js/backend/html_field.js @@ -315,6 +315,12 @@ export class HtmlField extends Component { this.props.record.model.bus.trigger("FIELD_IS_DIRTY", this._isDirty()) ); + if (this.props.isCollaborative) { + this.wysiwyg.odooEditor.addEventListener("onExternalHistorySteps", () => + this.props.record.model.bus.trigger("FIELD_IS_DIRTY", this._isDirty()) + ); + } + this.isRendered = true; } /**