diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index b7e9cc03c49..2127166f029 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -450,6 +450,9 @@ var Wysiwyg = Widget.extend({ * @override */ destroy: function () { + // Saving the content of the editor is not possible after destroy, + // so there's no need to keep the pop-up warning in this case. + window.onbeforeunload = null; this.editor.stop(); this._super(); },