[MERGE] forward port branch 9.0 up to 5e38bef5a5

This commit is contained in:
Christophe Simonis
2017-12-04 12:55:38 +01:00
2 changed files with 29 additions and 9 deletions
+2 -2
View File
@@ -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');
}
});