瀏覽代碼

黏贴后光标落到最后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]);     //光标落到最后去
       });
     })