Old post but none of the solutions worked for me. I figured it out eventually though:
var div = document.getElementById('contenteditablediv');
setTimeout(function() {
div.focus();
}, 0);
Old post but none of the solutions worked for me. I figured it out eventually though:
var div = document.getElementById('contenteditablediv');
setTimeout(function() {
div.focus();
}, 0);