5ilver5aracen
Programmer
Hi, I am using a div to edit some text. The div is set to contentEditable=true. The problem I have is that when the user clicks on a button/image/link that is outside the div the cursor disappears from the div. So if that button needs to apply some formatting to the textrange in the div it fails because the textrange loses focus. I've tried setting the buttons to onfocus=blur() but that doesnt seem to work. Does anyone know how to keep the focus on the textrange?
Many thanks in advance.
Many thanks in advance.