From f41f5cf3dfa27ea797a7066b5f29416ff2922133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Geelen=20=28sge=29?= Date: Thu, 14 Oct 2021 13:47:39 +0000 Subject: [PATCH] [FIX] web_editor: Properly remove link tools frame MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In mass mailing the link tools borders were not removed properly because the element couldn't be found inside the Iframe with a $() selector. Changed to use the `this.$link` of the `link_tool` class. task-2634073 closes odoo/odoo#78416 X-original-commit: 4acdd17eba2a4175d1bec33397aebeadb1d5bc04 Signed-off-by: David Monjoie (dmo) Signed-off-by: Sébastien Geelen --- 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 539899d56e0..461aac8f848 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 @@ -53,7 +53,7 @@ const LinkTools = Link.extend({ if (!this.el) { return this._super(...arguments); } - $('.oe_edited_link').removeClass('oe_edited_link'); + this.$link.removeClass('oe_edited_link'); const $contents = this.$link.contents(); if (!this.$link.attr('href') && !this.colorCombinationClass) { $contents.unwrap();