Roo/htmleditor/FilterWord.js
authorAlan <alan@roojs.com>
Thu, 21 Jul 2022 09:20:17 +0000 (17:20 +0800)
committerAlan <alan@roojs.com>
Thu, 21 Jul 2022 09:20:17 +0000 (17:20 +0800)
Roo/htmleditor/FilterWord.js

index a9fa6fb..993772f 100644 (file)
@@ -183,7 +183,10 @@ Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
         for( var i = 0; i < listpara.length; i ++) {
             listpara.item(i).className = "MsoListParagraph";
         }
-        
+        listpara = doc.getElementsByClassName('ql-indent-1');
+        for( var i = 0; i < listpara.length; i ++) {
+            listpara.item(i).className = "MsoListParagraph";
+        }
         
         // this is a bit hacky - we had one word document where h2 had a miso-list attribute.
         var htwo = doc.getElementsByTagName('h2');
@@ -200,11 +203,11 @@ Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
                 listpara.item(0).className = "MsoNormalx";
             }
         }
-        listpara = doc.getElementsByClassName('ql-indent-1');
-        while(listpara.length) {
-            this.replaceDocBullet(listpara.item(0));
-        }
+       
         listpara = doc.getElementsByClassName('MsoListParagraph');
+        
+        
+        
         while(listpara.length) {
             
             this.replaceDocBullet(listpara.item(0));