Roo/htmleditor/FilterWord.js
authorAlan <alan@roojs.com>
Thu, 21 Jul 2022 08:59:02 +0000 (16:59 +0800)
committerAlan <alan@roojs.com>
Thu, 21 Jul 2022 08:59:02 +0000 (16:59 +0800)
Roo/htmleditor/FilterWord.js

index e04a19f..eb6b843 100644 (file)
@@ -226,7 +226,7 @@ Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
                 ns = ns.nextSibling;
                 has_list = true;
                 if (spans.length && spans[0].hasAttribute('style')) {
-                    var  style = this.styleToObject(spans[0].getAttribute('style'));
+                    var  style = this.styleToObject(spans[0]);
                     if (typeof(style['font-family']) != 'undefined' && !style['font-family'].match(/Symbol/)) {
                         listtype = 'ol';
                     }