From 5ef8300cdd9f00dfd5d6eb186dffafb9be5c0e30 Mon Sep 17 00:00:00 2001 From: Deep Patel Date: Thu, 21 Jun 2018 15:26:50 +0530 Subject: [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 --- addons/web_editor/static/src/js/widgets/widgets.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addons/web_editor/static/src/js/widgets') 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, }; }); -- cgit v1.2.3