odoo/odoo#185639

Created by SM Engagement, Thomas Josse (thjo)
Merged at e182acd6a2460d4d0281af234a86f48cd808039a

Statuses:

Linked pull requests
label
odoo-dev:master-html_editor-add_toggle_list-thjo
head
067d23b55ae1f43dff1c65878079f77cd53684c4
merged
9 months ago by SM Engagement, Damien Abeloos (abd)
odoo/odoo odoo/enterprise
master #185639 #73329

[IMP] html_editor: add toggle block

This commit adds a new type of embedded components: toggle blocks.
They can be used similarly to a list and enable users to hide text inside a
toggle which frees a lot of space inside the html field.

These toggles can be used to have a more complete description for a specific
title. Or to hide some details about specific concepts.

On a technical point, this commit adds a new embedding and a plugin.
The embedding is quite a simple one as the element itself is simple.
The plugin on the other hand needed to handle a big part of editor behaviors:
Enter, Shift-tab, Tab, etc.
That is why we added new resources to make it easy to handle some specific
behaviors.

task-2796594


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr