odoo/odoo#186213

Created by Editor, Adnan Chaudhary (adch)
Merged at 239a502df8e0e9f5751a99ebade20b77612d5e71

Statuses:

label
odoo-dev:17.0-task-4089085-link-selection-adch
head
e5aab5e79e92f309fe95fe374cbccb63b864ee92
merged
3 months ago by Editor, David Monjoie (dmo)
odoo/odoo
17.0 #186213
saas-17.4 #197590
18.0 #197606
saas-18.1 #199198
saas-18.2 #199214
saas-18.3
master #199408

[FIX] web_editor: adjust cursor behavior for links at line end

Steps to reproduce:

  • Set up the editor with a link at the end of a line.
  • Refresh to start with fresh content.
  • Place the cursor at the end of the line with the link.
  • Notice that the cursor defaults inside the link, displaying the green overlay.
  • Attempt to type after the link—this requires pressing right arrow key to exit.

Description of the issue/feature this PR addresses:

  • Clicking at the end or start of a line with a link placed the cursor inside the link by default, displaying the green overlay.
  • Typing outside the link required pressing the arrow key.

Current behavior before PR:

  • Placing the cursor at the start or end of a line with a link now defaults to positioning it outside the link.
  • Green overlay is no longer shown, enabling direct text entry beside link.
  • Accessing the link requires an intentional left or right arrow key press.

task-4089085