odoo/odoo#191656

Created by fw-bot
Merged at ac9be11fd40738025908052c283c26e53923c43b

Statuses:

label
odoo-dev:saas-18.1-18.0-remove-format-table-cells-deso-OSHY-fw
head
87dbdf4c38086ae2f7ccdb54e14bf6181cb9b2f4
merged
5 months ago by Editor, David Monjoie (dmo)
odoo/odoo
18.0 #187355
saas-18.1 #191656
saas-18.2
saas-18.3
master #189635

[FW] 18.0 remove format table cells deso

Description of the issue this PR addresses:

I. Removing formatting on text with a background color inside a fully selected table triggers an infinite loop in removeAllColor. This happened because applying background color to selected table cells filtered out child nodes in each <td> to apply background color directly to the cell. However, this filtering should be skipped when there is no color to apply, such as when removing background color.

II. This PR fixes an issue where the background color of a table cell could not be removed when clearing formatting.

task-4333327


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #187355