[FIX] website snippet: carousel contentEditable
authorChristophe Matthieu <chm@openerp.com>
Tue, 3 Dec 2013 09:26:41 +0000 (10:26 +0100)
committerChristophe Matthieu <chm@openerp.com>
Tue, 3 Dec 2013 09:26:41 +0000 (10:26 +0100)
bzr revid: chm@openerp.com-20131203092641-6o3bsuayl71t0l7s

addons/website/static/src/js/website.snippets.editor.js

index ebbe0bf..6d9a2ff 100644 (file)
             this.$target.find('.carousel-indicators [data-target]').off('click').on('click', function () {
                 self.$target.carousel(+$(this).data('slide-to')); });
 
-            this.$target.attr('contentEditable', 'false')
-                .find('.oe_structure, blockquote').attr('contentEditable', 'true');
+            this.$target.attr('contentEditable', 'false');
+            this.$target.find('.oe_structure, blockquote').attr('contentEditable', 'true');
 
             this.$target.carousel('pause');
         },
             var self = this;
             this.$target.find('.carousel-control').off('click').on('click', function () {
                 self.$target.carousel( $(this).data('slide')); });
+
+            this.$target.find('.carousel-image img, .content').attr('contentEditable', 'true');
             this._super();
         },
     });