I have a <div contenteditable=true> where I define by a WYSIWYG some elements. For example <p>,<h1>, etc. I would like to directly put the focus on one of these elements.
For example on <p id="p_test">. But it seems that focus() function doesn't work on <div> elements, <p> elements...
Is there another means to define the focus in my case?