|
@@ -187,15 +187,15 @@ export const toTextProps = (json) => {
|
|
url: styleObj['href']
|
|
url: styleObj['href']
|
|
}
|
|
}
|
|
if (bulletFlag && styleObj['list-type'] === 'ol') {
|
|
if (bulletFlag && styleObj['list-type'] === 'ol') {
|
|
- options.bullet = { type: 'number', indent: 20 * 0.75 }
|
|
|
|
- options.breakLine=true
|
|
|
|
- options.paraSpaceBefore = 0.1
|
|
|
|
|
|
+ // options.bullet = { type: 'number', indent: 20 * 0.75 }
|
|
|
|
+ // options.breakLine=true
|
|
|
|
+ // options.paraSpaceBefore = 0.1
|
|
bulletFlag = false
|
|
bulletFlag = false
|
|
}
|
|
}
|
|
if (bulletFlag && styleObj['list-type'] === 'ul') {
|
|
if (bulletFlag && styleObj['list-type'] === 'ul') {
|
|
- options.bullet = { indent: 20 * 0.75 }
|
|
|
|
- options.breakLine=true
|
|
|
|
- options.paraSpaceBefore = 0.1
|
|
|
|
|
|
+ // options.bullet = { indent: 20 * 0.75 }
|
|
|
|
+ // options.breakLine=true
|
|
|
|
+ // options.paraSpaceBefore = 0.1
|
|
bulletFlag = false
|
|
bulletFlag = false
|
|
}
|
|
}
|
|
if(styleObj['line-height']){
|
|
if(styleObj['line-height']){
|
|
@@ -206,7 +206,7 @@ export const toTextProps = (json) => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
_parse(json)
|
|
_parse(json)
|
|
- //console.log('slice', slices)
|
|
|
|
|
|
+ console.log('slice', slices)
|
|
return slices
|
|
return slices
|
|
}
|
|
}
|
|
//将text中被转义的字符转义回来,如:a<b 在富文本内会被转义成 a<b
|
|
//将text中被转义的字符转义回来,如:a<b 在富文本内会被转义成 a<b
|