[FIX] website editor: don't not apply o_is_inline_editable class for image field to keep image in center

This commit is contained in:
Christophe Matthieu
2015-02-09 16:06:36 +01:00
parent ff6bf5bb2f
commit 07e734cab8
@@ -1322,7 +1322,7 @@ define(['summernote/summernote'], function () {
var $node = $(node);
// add class to display inline-block for empty t-field
if(window.getComputedStyle(node).display === "inline") {
if(window.getComputedStyle(node).display === "inline" && $node.data('oe-type') !== "image") {
$node.addClass('o_is_inline_editable');
}