|
@@ -46,7 +46,7 @@ class EditableSpan extends Component{
|
|
|
//黏贴时去掉html格式
|
|
|
$(this.$span.current).on("paste",function(e){
|
|
|
setTimeout(function(){
|
|
|
- txt = that.$span.current.innerText;
|
|
|
+ txt = that.$span.current.innerText||that.$span.current.innerHTML;
|
|
|
that.$span.current.innerHTML = txt;
|
|
|
});
|
|
|
})
|