Files
odoo_source/addons/web_editor/static
Nicolas Bayet 4ea715e151 [FIX] web_editor: remove zws when unformat a zws
Before this commit, when trying to remove a format of a
`data-oe-zws-empty-inline` of an empty block, the attribute was added to
that block and would never be removed. Also, unformatting a zws would
not remove the zws from the dom.

How to reproduce the original bug:
- put the selection inside an emtpy p
- ctrl+b (in windows/linux) or cmd+b (in mac)
=> The zws attribute data-oe-zws-empty-inline is added on the P rather
   than creating a span.
   - The next letter that will be typed will not be bold but should be
   bold
   - That attribute should not exists in a block, that could lead to
   unexpected bug

task-3628480

closes odoo/odoo#148659

X-original-commit: 7b7e343e7b4fd5bab4f41eeead85dedbf2ab717d
Signed-off-by: Geelen Sébastien (sge) <sge@odoo.com>
2024-01-10 08:51:00 +00:00
..
…