odoo/odoo#264722

Created by Editor, Adnan Chaudhary (adch)
Merged at dbeb9d94834f2de4cf66b93ba4142210ac9860e5

Statuses:

label
odoo-dev:18.0-backport-table-selection-adch
head
2bce23aef5d7532ebdd42b04fa69099252784a26
merged
3 days ago by Editor, Antoine Guenet (age)
odoo/odoo
18.0 #264722
saas-18.2 #264947
saas-18.3 #265143
saas-18.4 #265171
19.0 #265464
saas-19.1 #265681
saas-19.2 #265761 missing statuses missing r+
saas-19.3
master

[FIX] html_editor: select table from both ends

The previous commit fixes a behavior that is expected when the user makes a selection that starts in any element and ends in a table cell (the whole table gets selected), but the reverse case was never handled, namely when the selection starts in a table cell and ends outside of it.

backport-#239270/changes/68e71fad5bbb0445bb1850bf694235f3235b602f

task-5420366


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