diff options
| author | Christophe Matthieu <chm@odoo.com> | 2018-04-19 14:51:43 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2018-04-23 16:44:57 +0200 |
| commit | db37f9c4efa2e57bbfce07bb6ea5ab0b4f154cfb (patch) | |
| tree | 08025319118d4bb07f062036a77b7ddde92d566a /addons/web_editor/static/src/js | |
| parent | e34b8b07b4c1bfb3c91fbf156fb38866bf28a74b (diff) | |
[FIX] web_editor: wrong display for td in Apple Mail
the td are displayed with wrong background color if the td tag is empty
Diffstat (limited to 'addons/web_editor/static/src/js')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/transcoder.js | 3 |
1 files changed, 3 insertions, 0 deletions
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 = ' '; + } }); } |
