فهرست منبع

黏贴后光标落到最后2554

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

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

@@ -49,6 +49,7 @@ class EditableSpan extends Component{
       setTimeout(function(){
         txt = that.$span.current.innerText||that.$span.current.innerHTML;
         that.$span.current.innerHTML = txt;
+        that.moveEnd($(that.$span.current)[0]);     //光标落到最后去
       });
     })