[FIX] web_editor: prevent link o_default_snippet_text
Whenever a link is being manipulated through the link tool, the classes are being saved before the manipulation. However, the class `o_default_snippet_text` is removed in the meantime. Because we never want that class after the manipulation, this commit systematically remove it. Task-2667983 X-original-commit: f82f004e1e1439c38a09d5eb0fded5197e058c1b Part-of: odoo/odoo#79641
This commit is contained in:
@@ -183,6 +183,7 @@ const Link = Widget.extend({
|
||||
target: data.isNewWindow ? '_blank' : '',
|
||||
});
|
||||
if (data.classes) {
|
||||
data.classes = data.classes.replace(/o_default_snippet_text/, '');
|
||||
attrs.class = `${data.classes}`;
|
||||
}
|
||||
if (data.rel) {
|
||||
|
||||
Reference in New Issue
Block a user