Skip to content
Snippets Groups Projects
Commit 82bf73fe authored by Gorash's avatar Gorash Committed by Nicolas Martinelli
Browse files

[FIX] web_editor: avoid dialog error on email edition


Under certain unknown conditions, the range cannot be applied and
triggered an error. In order to allow the user to keep editing, we need
to prevent the dialog from showing, hence the use of `console.error`.
If this error appears, the carret is moved to the beginning of the focused
node.
If this error appears, then bullet can generate an error (I managed to
have the bug once or simulate it by manually breaking the dom and range)

closes odoo/odoo#34284

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 2349cba9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment