From d49983b23dd5ff12382d5c9eaa47291822ea42a7 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 19 Oct 2017 11:58:18 +0200 Subject: [FIX] web_editor: open link dialog on dblclick on real links When double-clicking on a link/button, the link dialog is opened. The problem was that the "btn" class is sometimes used on non-link elements. While this should not be, the editor can easily be adapted to this. --- addons/web_editor/static/src/js/rte.summernote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web_editor/static/src/js') diff --git a/addons/web_editor/static/src/js/rte.summernote.js b/addons/web_editor/static/src/js/rte.summernote.js index a3bf079aa30..866d0d68e84 100644 --- a/addons/web_editor/static/src/js/rte.summernote.js +++ b/addons/web_editor/static/src/js/rte.summernote.js @@ -771,7 +771,7 @@ eventHandler.attach = function (oLayoutInfo, options) { * Open Link Dialog on double click on a link/button. * Shows a tooltip on click to say to the user he can double click. */ - create_dblclick_feature("a[href], .btn", function () { + create_dblclick_feature("a[href], a.btn, button.btn", function () { eventHandler.modules.linkDialog.show(oLayoutInfo); }); -- cgit v1.2.3