Tuesday, February 11, 2025
1 change · master
New functionality added to Odoo
Users can now add toggle blocks in the HTML editor to hide or reveal longer sections of text. This helps keep rich text fields cleaner and easier to scan while still allowing detailed descriptions or explanations when needed.
Original PR description
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