Skip to content
Snippets Groups Projects
Commit 6da83cc5 authored by Antoine Guenet's avatar Antoine Guenet
Browse files

[FIX] web_editor: prevent undefined class/style

The `_wrap` util function of `convert_inline` was not checking if
`className` and `style` were defined before adding them to the wrapper
element, leading to things like `<div class="undefined">element</div>`.

This is a backport of commit [1] from 16.0.

[1]: https://github.com/odoo/odoo/commit/ac8aa12125063aae6ef7357827f3763732440ae0

Part-of: odoo/odoo#125146
parent fd778ce3
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