Skip to content
Snippets Groups Projects
Commit 5e192a3c authored by vishal padhiyar's avatar vishal padhiyar Committed by Hiral Bhavsar
Browse files

[FIX] web_editor: fix attributes missing from cleanForSave


Before this commit:

When we try to add html data in translated email templates then it does not
remove those extra classes from the html code.

After this commit:

Now those extra classes will remove from the html code.

Task-2985072

closes odoo/odoo#103414

Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
parent 94465e17
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,8 @@ export class QWebPlugin {
}
}
cleanForSave(editable) {
for (const node of editable.querySelectorAll('[data-oe-t-group]')) {
for (const node of editable.querySelectorAll('[data-oe-t-group], [data-oe-t-inline], [data-oe-t-selectable], [data-oe-t-group-active]')) {
node.removeAttribute('data-oe-t-group-active');
node.removeAttribute('data-oe-t-group');
node.removeAttribute('data-oe-t-inline');
node.removeAttribute('data-oe-t-selectable');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment