projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
50f3b00
)
Roo/htmleditor/FilterWord.js
author
Alan
<alan@roojs.com>
Tue, 21 Jun 2022 03:32:35 +0000
(11:32 +0800)
committer
Alan
<alan@roojs.com>
Tue, 21 Jun 2022 03:32:35 +0000
(11:32 +0800)
Roo/htmleditor/FilterWord.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/FilterWord.js
b/Roo/htmleditor/FilterWord.js
index
cba60d0
..
7532747
100644
(file)
--- 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);
{
// 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));
}
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));
}
while(listpara.length) {
this.replaceDocBullet(listpara.item(0));
}
+
},
replaceDocBullet : function(p)
},
replaceDocBullet : function(p)