From ea5f45c84518a76167337cd0f2c6db83cd62bef6 Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 21 Jun 2022 11:32:35 +0800 Subject: [PATCH] Roo/htmleditor/FilterWord.js --- Roo/htmleditor/FilterWord.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Roo/htmleditor/FilterWord.js b/Roo/htmleditor/FilterWord.js index cba60d09b2..7532747ef8 100644 --- a/Roo/htmleditor/FilterWord.js +++ b/Roo/htmleditor/FilterWord.js @@ -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) -- 2.39.2