Commit 22a75bd64a233bab1bc77ba48914a46301368828

Authored by bichao.dong
1 parent e7fefc6d

add input event

Showing 1 changed file with 1 additions and 1 deletions
editer.html
... ... @@ -71,7 +71,7 @@
71 71 <script>
72 72 $(function() {
73 73 var selection, range;
74   - $('.editer').on('click', function(){
  74 + $('.editer').on('click, input', function(){
75 75 selection = window.getSelection();
76 76 range = selection.getRangeAt(0);//找到焦点位置
77 77 });
... ...