projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbc44fc
)
Roo/htmleditor/FilterWord.js
author
Alan
<alan@roojs.com>
Wed, 29 Jun 2022 02:44:33 +0000
(10:44 +0800)
committer
Alan
<alan@roojs.com>
Wed, 29 Jun 2022 02:44:33 +0000
(10:44 +0800)
Roo/htmleditor/FilterWord.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/FilterWord.js
b/Roo/htmleditor/FilterWord.js
index
6a01522
..
3efe9d9
100644
(file)
--- a/
Roo/htmleditor/FilterWord.js
+++ b/
Roo/htmleditor/FilterWord.js
@@
-270,8
+270,11
@@
Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
return;
}
- var nlvl = (style['mso-list'].split(' ')[1].replace(/level/,'') *1) - 1 ;
-
+ var msolist_ar = style['mso-list'].split(' ');
+ // level1 == 0 level2 = 1 ... l2 level1 << should be '3'
+ var nlvl = (msolist_ar[1].replace(/level/,'') *1) - 1
+ var mso_l = (msolist_ar[0].replace(/l/,'') *1);
+ nlvl += (mso_l > 1) ? 1 : 0;
if (nlvl > lvl) {
//new indent