fb590c1dfeb3b4900d95861453c0a2e53c90915f
Before this commit: When changing the tag name, e.g applying a new format, the other styles applied are removed After this commit: We no longer remove already applied styles of the text and only change the tag name Reproduction: 1. Install Email Marketing, create an email with a template 2. Drag a text block and set the background color of the whole block as yellow 3. Set one line of the text body as Header 1, the background color is cleared Reason: it’s a normal result of removeFormat, it clears the background color of the parent element and re-apply the color to the text not selected Fix: After checking a few most popular editors, the common behavior is to keep the other styles applied to the text and only change the tag. Thus this fix will remove the format removing steps. Because of this change, the test case to check if the gradient text background color is modified. Other specified styles are kept after the tag change. Note: If the background color is the 5 colors at the first row, it won’t be cleared by setting the format because the color is set as a CSS class task-3245698 opw-3165587 Related PR/Fix: Adding the gradient background color removal https://github.com/odoo/odoo/pull/83065 closes odoo/odoo#129285 X-original-commit: 17f90e304537e517233b8762d4fd2b7f75bfa642 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%