html5 - preserving a contenteditable div selection while having the caret in an text input -


i have contenteditable div want allow user make selection click on text input field , enter value without highlighting of contenteditable selection lost.

is possible? can hack in firefox looks like.

i selection on mousedown , restore selection on mouseup while cursor in other input in chrome when restore selection causes focus lost in input field. not have work in ie, in ff, safari , chrome.

if isn't possible route going, there other workarounds issue?


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -