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');
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));