[FIX] website.snippet: can't edit content of the banner. (+ better fix for backward compatibility)
This commit is contained in:
parent
ebbfda91fe
commit
f30ab4a990
|
@ -972,7 +972,7 @@
|
|||
self.$target.carousel(+$(this).data('slide-to')); });
|
||||
|
||||
this.$target.attr('contentEditable', 'false');
|
||||
this.$target.find('.oe_structure, .content>.row, [data-slide]').attr('contentEditable', 'true');
|
||||
this.$target.find('.oe_structure, .content.row, [data-slide]').attr('contentEditable', 'true');
|
||||
},
|
||||
clean_for_save: function () {
|
||||
this._super();
|
||||
|
@ -1130,7 +1130,7 @@
|
|||
this._super();
|
||||
|
||||
/* Fix: backward compatibility saas-3 */
|
||||
this.$target.find('.item.text_image .container').find('> .carousel-caption > div, > img.carousel-image').attr('contentEditable', 'true');
|
||||
this.$target.find('.item.text_image, .item.image_text, .item.text_only').find('.container > .carousel-caption > div, .container > img.carousel-image').attr('contentEditable', 'true');
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue