Преглед на файлове

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