-
- Downloads
[FIX] web_editor: delete behavior in LI
Before this commit:
* A backspace at the beginning of a List Item (LI), the indentation of the list item was reduced by 1 unit.
If not possible, the current LI was merge with the previous LI.
* A delete at the end of a LI, first we remove one unit of indentation from the next LI,
only when not possible anymore we merge next LI in the current LI.
After this commit:
* A backspace at the beginning toggle off the current LI ( the LI tag is remove and popped out of the List )
The parent List is splitted if needed.
* A delete at the end of a LI directly merge next element inside the current LI.
task-3186679
Part-of: odoo/odoo#125211
Co-authored-by:
Aashish Thakur <aath@odoo.com>
Showing
- addons/web_editor/static/src/js/editor/odoo-editor/src/commands/deleteBackward.js 6 additions, 5 deletions.../src/js/editor/odoo-editor/src/commands/deleteBackward.js
- addons/web_editor/static/src/js/editor/odoo-editor/src/commands/deleteForward.js 33 additions, 0 deletions...c/src/js/editor/odoo-editor/src/commands/deleteForward.js
- addons/web_editor/static/src/js/editor/odoo-editor/test/spec/list.test.js 127 additions, 86 deletions...r/static/src/js/editor/odoo-editor/test/spec/list.test.js
This diff is collapsed.
Please register or sign in to comment