|
@@ -291,11 +291,9 @@ class EditableSpan extends Component{
|
|
|
$(this.$span.current).attr({"contentEditable":true}).focus()
|
|
|
}
|
|
|
componentDidMount(){
|
|
|
- const {preIsExt,afterIsExt,value} = this.props;
|
|
|
- const br = preIsExt&&!afterIsExt; //最后一个体征标签
|
|
|
- const val = br&&!config.punctuationReg.test(value)?'':value;
|
|
|
+ const {value} = this.props;
|
|
|
if(value){
|
|
|
- this.$span.current.innerText?(this.$span.current.innerText = val||''):(this.$span.current.innerHTML = val||'');
|
|
|
+ this.$span.current.innerText?(this.$span.current.innerText = value||''):(this.$span.current.innerHTML = value||'');
|
|
|
}
|
|
|
}
|
|
|
getClass(){
|