diff --git a/addons/web_editor/static/src/js/backend/convert_inline.js b/addons/web_editor/static/src/js/backend/convert_inline.js index 6ce7e909c15..5db9c3e9ed1 100644 --- a/addons/web_editor/static/src/js/backend/convert_inline.js +++ b/addons/web_editor/static/src/js/backend/convert_inline.js @@ -544,7 +544,7 @@ function formatTables($editable) { height = parent.style.getPropertyValue('height'); } if (parent) { - parent.style.setProperty('height', '0'); + parent.style.setProperty('height', $(parent).height()); } } // Align self and justify content don't work on table cells.