[FIX] website snippet: carousel contentEditable
[odoo/odoo.git] / 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();
         },
     });