Files
odoo_source/addons/web_editor
Jinjiu Liu b6757cbcdb [FIX] web_editor: text's first-click selection not set after link click
Reproduction:

1. in Website, enter Editing mode, drag a block with a button, for
example, banner
2. click on the button then click on the text above the button
3. the selection should be around the text paragraph, but it's on the
button

Note the behavior is only for the first time of clicking on the element,
e.g. when dragging and dropping a new block

Fix: The selection restoration when destroying the link tools should be
done on the spot instead of binding to the destroy of linkToolsInfos.
Without this fix, the selection restore in link tool is done after the
full selection step for o_default_snippet_text element

task-3514638

closes odoo/odoo#139031

X-original-commit: 6dcc33c6c85b605f43e8f42a5d4013eca9e0ef7a
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-10-18 13:39:22 +00:00
..
…
…