I have Editable Div content with a place owner.
See fiddle .
[contenteditable=true]:empty:before {
content: attr(placeholder);
}
#myDiv {
border: 1px dashed #AAA;
width: 290px;
padding: 5px;
text-align: center;
}
<div id="myDiv" contenteditable="true" placeholder="Enter text here..."></div>
Run codeHide resultThe problem is this: When we open this script in Chrome and click on the div, we get the cursor focus in the div in the center. see pic below:

But when we do the same in IE, we get focus on last place. see below pic.

I also want to focus the cursor in the center in IE.
source
share