[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:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user