[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) <dmo@odoo.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user