top of page
congbuckjobsolo

Contenteditable-set-cursor-position-to-end

Example: get cursor position in contenteditable div function cursor_position() { var sel = document.getSelection(); var pos = sel.toString().length; if(sel.












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





1 view0 comments

Recent Posts

See All

Comments


bottom of page