diff options
| author | Deep Patel <dep@odoo.com> | 2018-06-21 15:26:50 +0530 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2018-07-20 10:16:59 +0200 |
| commit | 5ef8300cdd9f00dfd5d6eb186dffafb9be5c0e30 (patch) | |
| tree | f88805742db46292b9f3244b029a92857e2ce618 /addons/web_editor | |
| parent | 624d75ca94c47c27ccba3ce6666402b050c30e92 (diff) | |
[ADD] web_unsplash: Find free high-resolution images from Unsplash
This commit:
1. Adds settings to install the new `web_unsplash` enterprise module.
See counterpart commit on enterprise for details.
2. Export `ImageWidget` and `update_control_panel` to be able to override them.
3. Add the unsplash access key rights to website designer. (see related OE
commit)
task-35060
Closes #25825, closes #25637
Diffstat (limited to 'addons/web_editor')
| -rw-r--r-- | addons/web_editor/static/src/js/widgets/widgets.js | 2 | ||||
| -rw-r--r-- | addons/web_editor/static/src/xml/editor.xml | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/widgets/widgets.js b/addons/web_editor/static/src/js/widgets/widgets.js index e2dc7ea73a7..5f00723865d 100644 --- a/addons/web_editor/static/src/js/widgets/widgets.js +++ b/addons/web_editor/static/src/js/widgets/widgets.js @@ -1103,6 +1103,7 @@ var MediaDialog = Dialog.extend({ }), custom_events: _.extend({}, Dialog.prototype.custom_events || {}, { save_request: '_onSaveRequest', + update_control_panel: '_updateControlPanel', }), /** @@ -1768,5 +1769,6 @@ return { MediaDialog: MediaDialog, LinkDialog: LinkDialog, CropImageDialog: CropImageDialog, + ImageWidget: ImageWidget, }; }); diff --git a/addons/web_editor/static/src/xml/editor.xml b/addons/web_editor/static/src/xml/editor.xml index 7a8827a8ea2..3c3085bfe79 100644 --- a/addons/web_editor/static/src/xml/editor.xml +++ b/addons/web_editor/static/src/xml/editor.xml @@ -109,7 +109,7 @@ <span class="text-muted">— or —</span> <label for="imageurl">Add an image URL</label> <div class="form-group btn-group"> - <input type="text" class="form-control url pull-left" id="imageurl" name="url" placeholder="https://www.odoo.com/logo.png" style="width: 320px;"/> + <input type="text" class="form-control url pull-left" id="imageurl" name="url" placeholder="https://www.odoo.com/logo.png" style="width: 250px;"/> <button type="button" class="btn btn-default o_upload_image_url_button" disabled="disabled">Add</button> </div> </div> |
