|
@@ -305,6 +305,10 @@ class EditableSpan extends Component{
|
|
|
const ext = preIsExt?style['ext']:style['unselect'];
|
|
|
const unselect = value.match(config.punctuationReg)||preSelected?'':ext;
|
|
|
const hasBr = br?style['editable-br']:''; //最后一个体征标签换行
|
|
|
+ const $span = this.$span.current;
|
|
|
+ if(br&&$span&&!$span.innerText){
|
|
|
+ this.$span.current.innerHTML=' ';
|
|
|
+ }
|
|
|
return classNames(style['editable-span'],isFull,unselect,hasBr);
|
|
|
}
|
|
|
|