From a101887f66b99a67715adcd071237112fbc0238b Mon Sep 17 00:00:00 2001 From: Nicolas Bayet Date: Thu, 4 Nov 2021 14:54:07 +0000 Subject: [PATCH] [FIX] web_editor: remove overlay of link Before this commit, in the website builder or in mass_mailing, when creating a link then hitting enter, then click somewhere in the page, the outline was not removed from all the links. In mass mailing, the overlay was never removed. Not even upon save. Task-2682176 closes odoo/odoo#79634 X-original-commit: 71325540712342ef8f251a37ee29270bd3b87469 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/js/wysiwyg/widgets/link_tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/widgets/link_tools.js b/addons/web_editor/static/src/js/wysiwyg/widgets/link_tools.js index b35e723a7a4..185c8d2e75f 100644 --- a/addons/web_editor/static/src/js/wysiwyg/widgets/link_tools.js +++ b/addons/web_editor/static/src/js/wysiwyg/widgets/link_tools.js @@ -61,7 +61,7 @@ const LinkTools = Link.extend({ if (!this.el) { return this._super(...arguments); } - this.$link.removeClass('oe_edited_link'); + $(this.options.wysiwyg.odooEditor.document).find('.oe_edited_link').removeClass('oe_edited_link'); const $contents = this.$link.contents(); if (!this.$link.attr('href') && !this.colorCombinationClass) { $contents.unwrap();