odoo/odoo#265143

Created by fw-bot
Merged at 61daed75f7cc63d7386ee33e856430cd61f5a333

Statuses:

label
odoo-dev:saas-18.3-18.0-backport-table-selection-adch-527396-fw
head
e45838b4e442105883aea671ce7023ee6fa36376
merged
2 days ago by Editor, Adnan Chaudhary (adch)
odoo/odoo
18.0 #264722
saas-18.2 #264947
saas-18.3 #265143
saas-18.4 #265171
19.0 #265464
saas-19.1 #265681 staged
saas-19.2
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

Forward-Port-Of: #264947
Forward-Port-Of: #264722