I have a number of divs each has the property contenteditable="true", I am able to detect when the user clicks or hovers over an element using JQuery, but how can I tell if the div is selected i.e. the text cursor appears within div and is ready to accept text input.
Ideally I am after a JQuery solution.
This isn't a duplicate of this as question marked does not take into consideration that a div is selected but not being edited!
 
    