Skip to content
Snippets Groups Projects
Commit 0c097311 authored by Stanislas Gueniffey's avatar Stanislas Gueniffey
Browse files

[FIX] web_editor: do not remove default styles


Previously, when copy-pasting HTML with styles on styleable tags, those
styles could still be removed by the editor if they had a default value.
This was supposed to be a way to keep the DOM clean and lighter.

However, styles with default values still serve a purpose when
overriding non-default values inherited by their parents. Therefore,
removing them was a conceptual mistake.

One example in the editor where this purpose can be served is in
tables where spans can override the style of the cell or parent span.

This commit ensures we no longer remove style attributes because of
their default value.

Task-3332955

closes odoo/odoo#121862

Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
parent 1e242de5
No related branches found
No related tags found
No related merge requests found
Loading
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