Using JS to set cursor in a contenteditable div works fine in Chrome, but not if the div is empty
Set cursor after span element inside contenteditable div
Get and set cursor position with contenteditable div How to set cursor position in contenteditable span Move cursor to placeholder element in a contentEditable DIV Drop image into contenteditable in Chrome to the cursor How to find cursor position in a contenteditable DIV? How to set the cursor in the child of a contentEditable element? check that contenteditable div is empty or not how do i set cursor in the parent div which is contenteditable set to true but i have How to add a html element next to the cursor in contentEditable div. React Js How to set cursor position in span in contenteditable div Set cursor to the end of contenteditable div Edit cursor not displayed on Chrome in contenteditable replaceHtmlAt using jQuery inside contentEditable div JavaScript: get cursor position in contenteditable div Set cursor position on contentEditable <div> Move cursor to next contentEditable - JQuery Append div at cursor in a contenteditable div Move cursor to end of contenteditable setting the cursor after an image in contenteditable div ngPaste on contentEditable div Change cursor position in the contenteditable div after changing innerHTML How to get current position of cursor in contenteditable? Wrap cursor in html in a contenteditable div contentEditable cursor's parent element ContentEditable div,cursor position is not working properly Fix cursor position correct with contenteditable div Contenteditable DIV length Contenteditable div is not working contenteditable div get cursor position