Html [removed] Setting cursor at the end of contenteditable is not the same as clicking the last character at contenteditable

后端 未结 0 2053
梦谈多话
梦谈多话 2021-02-08 17:02

So I have this code which set the cursor to the end of div contenteditable:

function setCursorAtTheEnd(el) {
    var range = document.createRange();
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题