Fix #6048 - clean up hanging span content tags
[roojs1] / Roo / form / HtmlEditor / ToolbarStandard.js
index 2f5565c..03ce483 100644 (file)
@@ -434,8 +434,9 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
                     
                     var c = Roo.get(editorcore.doc.body);
                     c.select('[class]').each(function(s) {
-                        s.dom.className = '';
+                        s.dom.removeAttribute('class');
                     });
+                    editorcore.cleanWord();
                     editorcore.syncValue();
                 },
                 tabIndex:-1