-
- Downloads
[IMP] web_editor, website: introduce foldable zones in the editor UI
Now any set of widgets and rows can be placed in a we-collapse element so that those elements can be foldable. The first element inside (or the mentioned "string" on the we-collapse element itself) is used as the always shown element (with a toggler on its left to toggle the visibility of the other items). we-collapse inside other we-collapse is supported as well. Limitations / Other infos: - The use of '⌙' and   characters is not automatic (yet?). Sometimes it actually make sense to use them without a we-collapse or to not use them in a we-collapse. - The use of we-collapse is limited to widgets inside the same option. So unfortunately, there is no current way to add all bg image options in a folable section as those contain many different options. Maybe in the future. Part of https://github.com/odoo/odoo/pull/56350 closes odoo/odoo#56350 Signed-off-by:Quentin Smetz (qsm) <qsm@odoo.com>
Showing
- addons/web_editor/static/src/js/editor/snippets.options.js 81 additions, 11 deletionsaddons/web_editor/static/src/js/editor/snippets.options.js
- addons/web_editor/static/src/scss/web_editor.variables.scss 1 addition, 2 deletionsaddons/web_editor/static/src/scss/web_editor.variables.scss
- addons/web_editor/static/src/scss/wysiwyg_snippets.scss 55 additions, 3 deletionsaddons/web_editor/static/src/scss/wysiwyg_snippets.scss
- addons/web_editor/views/snippets.xml 208 additions, 200 deletionsaddons/web_editor/views/snippets.xml
- addons/website/static/src/js/editor/snippets.options.js 6 additions, 91 deletionsaddons/website/static/src/js/editor/snippets.options.js
- addons/website/static/src/scss/website.wysiwyg.scss 5 additions, 80 deletionsaddons/website/static/src/scss/website.wysiwyg.scss
- addons/website/static/src/xml/website.editor.xml 19 additions, 21 deletionsaddons/website/static/src/xml/website.editor.xml
- addons/website/views/snippets/snippets.xml 5 additions, 4 deletionsaddons/website/views/snippets/snippets.xml
Loading
Please register or sign in to comment