From c23a3fd9ccfdff69702eb8adf2c44b440bf33707 Mon Sep 17 00:00:00 2001 From: dbh Date: Fri, 10 Feb 2017 18:36:08 +0530 Subject: [PATCH] [FIX] web_editor: doubleclick on image in a link Before this commit, when clicking on an image which is in a link, both the link edition dialog and the image edition dialog were opened. Now only one opens. --- 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 4ab1e7bed06..8ff0effb86b 100644 --- a/addons/web_editor/static/src/js/rte.summernote.js +++ b/addons/web_editor/static/src/js/rte.summernote.js @@ -849,6 +849,7 @@ eventHandler.attach = function (oLayoutInfo, options) { if ($(e.target).closest(".note-toolbar").length) return; // prevent icon edition of top bar for default summernote show_tooltip = false; callback(); + e.stopImmediatePropagation(); }); oLayoutInfo.editor().on("click", selector, function (e) {