odoo/odoo#158975

Created by fw-bot
Merged at a42ca8f3ba74c608dd5fd31f69148ca01d9eb2e4

Statuses:

label
odoo-dev:17.0-16.0-weird-behaviour-during-copy-paste-dhba-suH--fw
head
7b7ffc88edd08fcb181888ef7ac6412933efbec7
merged
1 year ago by Editor, David Monjoie (dmo)
odoo/odoo
16.0 #155212
saas-16.3 #158919
saas-16.4 #158952
17.0 #158975
saas-17.1 #159257
saas-17.2 #159283
18.0
saas-18.1
saas-18.2
saas-18.3
saas-18.4
master #159306

[FW][FIX] web_editor: issue with copy paste

Current behavior before PR:

When attempting to copy a button that is a direct child of a div tag, the div was unintentionally copied along with the button, leading to additional space upon pasting, along with the background color.

Desired behavior after PR is merged:

Now, only the button will be copied and pasted.

task-3764652

Forward-Port-Of: #155212