diff options
| author | Samuel Degueldre <sad@odoo.com> | 2019-12-09 06:51:17 +0000 |
|---|---|---|
| committer | Samuel Degueldre <sad@odoo.com> | 2019-12-31 07:58:10 +0000 |
| commit | f8632ec6f3485912aed850a4f59934061baa1cc7 (patch) | |
| tree | 4e96fff2c286bac54ba05a0ff0157868049e7c54 /addons/web/static/src/xml | |
| parent | 38b5c759f3ade54aaaa620f2b5ab23c11e9cc71e (diff) | |
[IMP] web_editor: add an image-picker UserValueWidget
This commit introduces a new web_editor UserValueWidget on the
we-imagepicker tag, this widget allows the user to pick an image or a
video using the MediaDialog, and calls the containing snippet option's
method (specified via data-attribute) with the url of the chosen picture
or video as widgetValue. Videos are disabled by default and can be
accessed through the use of the data-allow-videos="selector" data
attribute, any $target that matches the selector will have videos
available in the media dialog.
Part of odoo/odoo#41561
task-2155808
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions
