summaryrefslogtreecommitdiff
path: root/addons/web_editor
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-12-04 16:24:24 +0100
committerChristophe Simonis <chs@odoo.com>2017-12-04 16:24:24 +0100
commit426e269c220073c77894d7ef2fa108f97eadf9b3 (patch)
treef7078f83ff6c54f4737633b4f1d45f84da98f265 /addons/web_editor
parentbe64ba60694a2498e1f023d722775b299554cb85 (diff)
parent067a241ea8eee57a7a375a31ac99e67437539141 (diff)
[MERGE] forward port branch 10.0 up to 067a241ea8e
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');
}
});