summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/rte.summernote.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-12-08 17:37:35 +0100
committerChristophe Matthieu <chm@odoo.com>2015-12-15 10:47:50 +0100
commit16a3bc7f22cd12b37262e0f62cc7f65f3be8c615 (patch)
treed6d70b12c635b0f6addb034f0ac3a6f854e25094 /addons/web_editor/static/src/js/rte.summernote.js
parentf3f7bd9f240bc21dffadd784cdf77203b1a5148c (diff)
[FIX] web_editor: unbind summernote mousedown on detach/stop editor
Diffstat (limited to 'addons/web_editor/static/src/js/rte.summernote.js')
-rw-r--r--addons/web_editor/static/src/js/rte.summernote.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/rte.summernote.js b/addons/web_editor/static/src/js/rte.summernote.js
index ca7d97ffd82..01020a84c22 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);