|
@@ -358,9 +358,9 @@ class EditableSpan extends Component{
|
|
|
const hasBr = br?style['editable-br']:''; //最后一个体征标签换行
|
|
|
const selectedArea = mouseSelect?style['selected-area']:'';
|
|
|
const $span = this.$span.current;
|
|
|
- const val = $span&&$span.innerText.trim();
|
|
|
- if(br&&$span&&!$span.innerText){
|
|
|
- this.$span.current.innerHTML=' ';
|
|
|
+ const val = $span&&$span.innerHTML.trim();
|
|
|
+ if(br&&$span&&!$span.innerHTML){
|
|
|
+ $span.innerHTML=' ';
|
|
|
}
|
|
|
return classNames(style['editable-span'],isFull,hasBr,setFontColorSize(2,unselect?6:8),unselect,selectedArea);
|
|
|
}
|