From b44c34865bbe733a76f30375e09957d10bce2c27 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 14 May 2018 15:10:09 +0200 Subject: [FIX] web_editor: correct js code. Oversight of previous forward-port --- addons/web_editor/static/src/js/editor/transcoder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/web_editor/static/src/js/editor/transcoder.js') diff --git a/addons/web_editor/static/src/js/editor/transcoder.js b/addons/web_editor/static/src/js/editor/transcoder.js index 9ca19f01ac3..99985a1c383 100644 --- a/addons/web_editor/static/src/js/editor/transcoder.js +++ b/addons/web_editor/static/src/js/editor/transcoder.js @@ -272,12 +272,12 @@ function classToStyle($editable) { $target.attr('style', style); } // Apple Mail - if (this.nodeName === 'TD' && !this.childNodes.length) { - this.innerHTML = ' '; + if (node.nodeName === 'TD' && !node.childNodes.length) { + node.innerHTML = ' '; } // Outlook - if (this.nodeName === 'A' && $target.hasClass('btn') && !$target.children().length) { + if (node.nodeName === 'A' && $target.hasClass('btn') && !$target.children().length) { var $hack = $('
'); $hack.find('td') .attr('height', $target.outerHeight()) -- cgit v1.2.3