diff --git a/src/main/webapp/static/js/jquery/openolat/jquery.contenteditor.js b/src/main/webapp/static/js/jquery/openolat/jquery.contenteditor.js
index ad7ac0d8491cf8ada4e26a7b8228b27393123496..f709154f000ac02d6585e30214e875e3c0052a47 100644
--- a/src/main/webapp/static/js/jquery/openolat/jquery.contenteditor.js
+++ b/src/main/webapp/static/js/jquery/openolat/jquery.contenteditor.js
@@ -83,7 +83,8 @@
 						|| jQuery(e.target).closest(".mce-container").length > 0
 						|| jQuery(e.target).closest(".mce-widget").length > 0
 						|| jQuery(e.target).closest(".o_layered_panel .popover").length > 0
-						|| jQuery(e.target).closest(".o_layered_panel .modal-dialog").length > 0;
+						|| jQuery(e.target).closest(".o_layered_panel .modal-dialog").length > 0
+						|| e.target.nodeName == 'BODY';
 					if(!edited && !excludedEls) {
 						o_XHREvent(componentUrl, false, false, 'cid', 'close_edit_fragment');
 					}