[FIX] website editor: add attributeEditable attribute to edit an editing host

bzr revid: chm@openerp.com-20140115141756-4ixq240p5z1snt9h
This commit is contained in:
Christophe Matthieu
2014-01-15 15:17:56 +01:00
parent d24ff2f505
commit bcef910f84
2 changed files with 2 additions and 1 deletions
@@ -49,7 +49,7 @@
function is_editable_node(element) {
return !(element.data('oe-model') === 'ir.ui.view'
|| element.data('cke-realelement')
|| is_editing_host(element)
|| (is_editing_host(element) && element.getAttribute('attributeEditable') !== 'true')
|| element.isReadOnly());
}
@@ -1363,6 +1363,7 @@
self.$target.carousel( $(this).data('slide')); });
this.$target.find('.carousel-image, .content').attr('contentEditable', 'true');
this.$target.find('.carousel-image').attr('attributeEditable', 'true');
this._super();
},
});