odoo/odoo#192041

Created by fw-bot
Merged at de47ec932742ef82b315990cbac8787f82aa91d5

Statuses:

label
odoo-dev:saas-17.2-17.0-opw-4283325-macr-spdd-fw
head
03ac04afe15ec66dadd720141cd85ccadd1530f7
merged
7 months ago by Website, Quentin Smetz (qsm)
odoo/odoo
17.0 #186638
saas-17.2 #192041
saas-17.4 #192059
18.0 #192061
saas-18.1 #192065
saas-18.2
saas-18.3
saas-18.4
master #192085

[FW][FIX] web_editor, website: insert link in mass_mailing

Issue:

We can't insert a link with /url in mass mailing

Steps to reproduce the issue:

  • Install website and email marketing
  • Create a new mass mailing
  • Add a button using /button
  • Add a label
  • Write / in url and choose any option make sure to click on it using the mouse
  • Save
  • The link isn't inserted

Origin of the issue:

When we click to select an item, the event mousedown is triggered on the document which will force a wysiwyg blur. So the selection is no more in the editable and we can't insert the link.

Solution:

To avoid the blur, we add the selector of the autocomplete to the selectors that delay the blur.

opw-4283325

Forward-Port-Of: #186638