From db37f9c4efa2e57bbfce07bb6ea5ab0b4f154cfb Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 19 Apr 2018 14:51:43 +0200 Subject: [PATCH] [FIX] web_editor: wrong display for td in Apple Mail the td are displayed with wrong background color if the td tag is empty --- addons/web_editor/static/src/js/editor/transcoder.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web_editor/static/src/js/editor/transcoder.js b/addons/web_editor/static/src/js/editor/transcoder.js index d17f703d89e..b250decde53 100644 --- a/addons/web_editor/static/src/js/editor/transcoder.js +++ b/addons/web_editor/static/src/js/editor/transcoder.js @@ -229,6 +229,9 @@ function classToStyle($editable) { } else { $target.attr('style', style); } + if (this.nodeName === 'TD' && !this.childNodes.length) { + this.innerHTML = ' '; + } }); }