Files
odoo_source/addons
Antoine Guenet 0c95529e0f [FIX] web_editor: preserve leading spaces on delete range
When pressing delete on "[a] b c" the result is " b c" instead of
" b c". As result, text is rendered as "[]b c". The cause lies in
`deleteRange`: it ensures trailing spaces remains visible, but does not
take care of eventual invisible leading spaces. This adapts it to make
use of `prepareUpdate` which is made to handle this sort of issues. In
so doing we need to adapt `getState` and `prepareUpdate` to handle the
special cases brought by `deleteRange`. An option is introduced in
`prepareUpdate` to prevent its reentry until the update is complete (as
otherwise we may restore invalid intermediary states in the middle of
the deletion process).

task-3143042

X-original-commit: 8fd69afa591d11afe07da803ec550f052402713f
Part-of: odoo/odoo#138549
2023-10-13 07:33:55 +00:00
..
2023-09-27 11:33:01 +00:00
2023-10-12 09:49:46 +00:00
2023-10-10 17:26:34 +00:00
2023-10-12 16:12:06 +00:00
2023-09-27 11:33:01 +00:00
2023-10-06 14:33:43 +00:00
…
…
2023-09-27 11:33:01 +00:00
2023-09-27 11:33:01 +00:00
2023-09-27 11:33:01 +00:00
2023-09-27 11:33:01 +00:00