Parcourir la source

黏贴后光标落到最后2554

zhouna il y a 5 ans
Parent
commit
512352ca47
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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]);     //光标落到最后去
       });
     })