summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/widgets
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-05-30 12:18:52 +0200
committerChristophe Simonis <chs@odoo.com>2018-05-30 12:18:52 +0200
commite008ef302a1b3fc584d4f0fb9956d237947f17d5 (patch)
tree7976948d25c1aa7aa23123ccabb37b5eaae8e8e3 /addons/web_editor/static/src/js/widgets
parentf36e6917bd73a56dc0c7468b4849920df4088154 (diff)
parent53300648edef8f87bfd0bff6b52536efdd1cc82c (diff)
[MERGE] forward port branch saas-11.3 up to 53300648ede
Diffstat (limited to 'addons/web_editor/static/src/js/widgets')
-rw-r--r--addons/web_editor/static/src/js/widgets/widgets.js5
1 files changed, 4 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 5fd70d9cfee..ab8f166d221 100644
--- a/addons/web_editor/static/src/js/widgets/widgets.js
+++ b/addons/web_editor/static/src/js/widgets/widgets.js
@@ -308,7 +308,10 @@ var ImageWidget = MediaWidget.extend({
img.src += _.str.sprintf('?access_token=%s', img.access_token);
}
if (!self.$media.is('img')) {
- self._replaceMedia($('<img/>'));
+ // Note: by default the images receive the bootstrap opt-in
+ // img-responsive class. We cannot make them all responsive
+ // by design because of libraries and client databases img.
+ self._replaceMedia($('<img/>', {class: 'img-responsive o_we_custom_image'}));
}
self.$media.attr('src', img.src);