Roo/htmleditor/FilterWord.js
authorAlan <alan@roojs.com>
Tue, 21 Jun 2022 03:32:35 +0000 (11:32 +0800)
committerAlan <alan@roojs.com>
Tue, 21 Jun 2022 03:32:35 +0000 (11:32 +0800)
Roo/htmleditor/FilterWord.js

index cba60d0..7532747 100644 (file)
@@ -145,15 +145,21 @@ Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
     {
         // this is a bit odd - but it appears some indents use ql-indent-1
         Roo.log(doc.innerHTML);
-        var listpara = doc.getElementsByClassName('ql-indent-1');
+        
+        var listpara = doc.getElementsByClassName('MsoListParagraphCxSpFirst');
+        for( var i = 0; i < listpara.length; i ++) {
+            listpara.item(i).className = "MsoListParagraph";
+        }
+        
+        listpara = doc.getElementsByClassName('ql-indent-1');
         while(listpara.length) {
             this.replaceDocBullet(listpara.item(0));
         }
-        
-        var listpara = doc.getElementsByClassName('MsoListParagraph');
+        listpara = doc.getElementsByClassName('MsoListParagraph');
         while(listpara.length) {
             this.replaceDocBullet(listpara.item(0));
         }
+      
     },
     
     replaceDocBullet : function(p)