Files
odoo_source/addons
Sébastien Geelen (sge) dd7a50db06 [FIX] web_editor: ensure dynamic placeholder focus
When inserting a dynamic placeholder in the editable document
we need to ensure the said document currently hold the focus and
have an active selection range.

This was previously handle by the `onDynamicPlaceholderClose()` method
which used to be called before `onDynamicPlaceholderValidate()`.

This seems to have changed from 16.1 to 16.2.

In order to fix the problem and ensure the focus in any situation,
we add a `wysiwyg.focus()` call at the beginning of the validate method.

task-3222474

closes odoo/odoo#124149

X-original-commit: 51b992dec0bcdf09fde5e0811699235b590723ee
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-06-07 18:01:13 +02:00
..
2023-06-06 16:22:45 +02:00
2023-05-10 18:16:21 +02:00
2023-05-10 20:15:02 +02:00
2023-05-10 20:14:59 +02:00
2023-05-11 18:24:53 +02:00
2023-05-10 20:15:12 +02:00
2023-05-11 10:40:53 +02:00
2023-05-11 10:40:55 +02:00
2023-05-12 09:21:49 +02:00
2023-06-06 14:48:30 +02:00