From 16a3bc7f22cd12b37262e0f62cc7f65f3be8c615 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu <chm@odoo.com> Date: Tue, 8 Dec 2015 17:37:35 +0100 Subject: [PATCH] [FIX] web_editor: unbind summernote mousedown on detach/stop editor --- addons/web_editor/static/src/js/rte.summernote.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/static/src/js/rte.summernote.js b/addons/web_editor/static/src/js/rte.summernote.js index ca7d97ffd82c..01020a84c22a 100644 --- a/addons/web_editor/static/src/js/rte.summernote.js +++ b/addons/web_editor/static/src/js/rte.summernote.js @@ -772,6 +772,7 @@ eventHandler.attach = function (oLayoutInfo, options) { var fn_detach = eventHandler.detach; eventHandler.detach = function (oLayoutInfo, options) { fn_detach.call(this, oLayoutInfo, options); + oLayoutInfo.editable().off('mousedown'); oLayoutInfo.editor().off("dragstart"); oLayoutInfo.editor().off('click'); $(document).off('mousedown', summernote_mousedown); -- GitLab