[FIX] web_editor: wrong display for td in Apple Mail

the td are displayed with wrong background color if the td tag is empty
This commit is contained in:
Christophe Matthieu
2018-04-23 16:44:57 +02:00
parent e34b8b07b4
commit db37f9c4ef
@@ -229,6 +229,9 @@ function classToStyle($editable) {
} else {
$target.attr('style', style);
}
if (this.nodeName === 'TD' && !this.childNodes.length) {
this.innerHTML = ' ';
}
});
}