Example: get cursor position in contenteditable div function cursor_position() { var sel = document.getSelection(); var pos = sel.toString().length; if(sel.
DOWNLOAD: https://byltly.com/2f6xwb
DOWNLOAD: https://byltly.com/2f6xwb
contenteditable-set-cursor-position-to-end
The following function will do it in all major browsers: function placeCaretAtEnd(el) { el.focus(); if (typeof window.getSelection != "undefined" ...Move cursor to end of contenteditable - Stack Overflow1 answer 939c2ea5af
Comments