Skip to content
Snippets Groups Projects
Commit 16a3bc7f authored by Christophe Matthieu's avatar Christophe Matthieu
Browse files

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

parent f3f7bd9f
No related branches found
No related tags found
No related merge requests found
...@@ -772,6 +772,7 @@ eventHandler.attach = function (oLayoutInfo, options) { ...@@ -772,6 +772,7 @@ eventHandler.attach = function (oLayoutInfo, options) {
var fn_detach = eventHandler.detach; var fn_detach = eventHandler.detach;
eventHandler.detach = function (oLayoutInfo, options) { eventHandler.detach = function (oLayoutInfo, options) {
fn_detach.call(this, oLayoutInfo, options); fn_detach.call(this, oLayoutInfo, options);
oLayoutInfo.editable().off('mousedown');
oLayoutInfo.editor().off("dragstart"); oLayoutInfo.editor().off("dragstart");
oLayoutInfo.editor().off('click'); oLayoutInfo.editor().off('click');
$(document).off('mousedown', summernote_mousedown); $(document).off('mousedown', summernote_mousedown);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment