diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-12-04 19:25:51 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-12-04 19:25:51 +0100 |
| commit | a447da75fd6f3c76aa4db80d9a83d5e56fa0854d (patch) | |
| tree | 5d19dd629b4498f16d24d20085aee391b6b06fad /addons/web_editor | |
| parent | 863fad1b535b05e2fd61b29888f492290c1aa7a5 (diff) | |
| parent | e7d174a1422e2f8bfd849134767d5f43383599b0 (diff) | |
[MERGE] forward port branch saas-14 up to e7d174a1422
Diffstat (limited to 'addons/web_editor')
| -rw-r--r-- | addons/web_editor/static/src/js/rte.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/js/rte.js b/addons/web_editor/static/src/js/rte.js index 13eb568f9b7..e177846c0fd 100644 --- a/addons/web_editor/static/src/js/rte.js +++ b/addons/web_editor/static/src/js/rte.js @@ -355,8 +355,8 @@ var RTE = Widget.extend({ var $el = $(this); $el.find('[class]').filter(function () { - if (!this.className.match(/\S/)) { - this.removeAttribute("class"); + if (!this.getAttribute('class').match(/\S/)) { + this.removeAttribute('class'); } }); |
