|
@@ -236,7 +236,14 @@ export function backspaceText(state,action){
|
|
res.saveText.splice(delIndex,1);
|
|
res.saveText.splice(delIndex,1);
|
|
}else{
|
|
}else{
|
|
handleLocalDelTag(4,inx,data[inx]);
|
|
handleLocalDelTag(4,inx,data[inx]);
|
|
- const n = action.text.length>0&&(config.punctuationReg.test(action.text))?1:2;
|
|
|
|
|
|
+ let n = ''
|
|
|
|
+ if(action.text==' '){
|
|
|
|
+ n = 2
|
|
|
|
+ }else if(action.text.length>0&&(config.punctuationReg.test(action.text))){
|
|
|
|
+ n = 1
|
|
|
|
+ }else{
|
|
|
|
+ n = 2
|
|
|
|
+ }
|
|
data.splice(inx,n);
|
|
data.splice(inx,n);
|
|
res.saveText.splice(inx,n);
|
|
res.saveText.splice(inx,n);
|
|
}
|
|
}
|