فهرست منبع

ff26纯文本黏贴容错...部分支持黏贴

zhouna 5 سال پیش
والد
کامیت
150bae5adc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/common/components/EditableSpan/index.jsx

+ 1 - 1
src/common/components/EditableSpan/index.jsx

@@ -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;
       });
     })