summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-11-19 14:11:13 +0100
committerXavier Morel <xmo@openerp.com>2013-11-19 14:11:13 +0100
commitb6be7b87c646f83b54c69cc4b0217043cb7b6956 (patch)
tree7550f4aa72a1498d5ac3c3882b7bda46220c366b /addons/website/static/src/js/website.editor.js
parentba2ee4e2872b1cecbb9f066700339946c062e89a (diff)
[IMP] add img-responsive to images generated via dialog
avoids having the image end up larger than its container bzr revid: xmo@openerp.com-20131119131113-9010p4tubk1yz10s
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 2281b6fd30d..1a982fb7d30 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -1195,6 +1195,7 @@
if (!(element = this.element)) {
element = editor.document.createElement('img');
element.addClass('img');
+ element.addClass('img-responsive');
// focus event handler interactions between bootstrap (modal)
// and ckeditor (RTE) lead to blowing the stack in Safari and
// Chrome (but not FF) when this is done synchronously =>