[FIX] web_editor: unbind summernote mousedown on detach/stop editor

This commit is contained in:
Christophe Matthieu
2015-12-15 10:47:50 +01:00
parent f3f7bd9f24
commit 16a3bc7f22
@@ -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);