From f2b996067795fc45331a5ca4d34bd1d5cffbff02 Mon Sep 17 00:00:00 2001 From: Nicolas Bayet Date: Thu, 4 Nov 2021 16:32:12 +0000 Subject: [PATCH] [FIX] web_editor: properly fix link selection There is a fix in the editor to fix link selection (see _fixLinkMutatedElements). Prior to this commit, in mass mailing the main editable element had the class `o_not_editable`. This class on the editable disabled the link fix. Also, it was semantically strange to have the editable being `o_not_editable`. Task-2684360 closes odoo/odoo#79934 X-original-commit: 112f3776985fbe8f5291cd4d26424f6c427ff36c Signed-off-by: David Monjoie (dmo) --- addons/mass_mailing/static/src/js/mass_mailing_widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mass_mailing/static/src/js/mass_mailing_widget.js b/addons/mass_mailing/static/src/js/mass_mailing_widget.js index 8980c4c0e8c..c184442161b 100644 --- a/addons/mass_mailing/static/src/js/mass_mailing_widget.js +++ b/addons/mass_mailing/static/src/js/mass_mailing_widget.js @@ -133,7 +133,7 @@ var MassMailingFieldHtml = FieldHtml.extend({ // named so they are handled properly by the snippets menu. this.$content.find('.o_layout').addBack().data('name', 'Mailing'); // We don't want to drop snippets directly within the wysiwyg. - this.$content.removeClass('o_editable').addClass('o_not_editable') + this.$content.removeClass('o_editable'); }, /** * Returns true if the editable area is empty.