summaryrefslogtreecommitdiff
path: root/addons/web_editor
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-12-04 12:55:38 +0100
committerChristophe Simonis <chs@odoo.com>2017-12-04 12:55:38 +0100
commit7b808982a02c7fe0ead85b1e00ceff1c7bf2d2a1 (patch)
treed089f4117ef80ac5e3975d0b5cde086df7799811 /addons/web_editor
parent424533f694129b10d78bc5467b9e3d4d104df2f7 (diff)
parent5e38bef5a5ededb28707af44a19caaec2af2d682 (diff)
[MERGE] forward port branch 9.0 up to 5e38bef5a5e
Diffstat (limited to 'addons/web_editor')
-rw-r--r--addons/web_editor/static/src/js/rte.js4
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');
}
});