I have a contentEditable div
which in some cases gets display: none
, then again display: block
(inline-block
), I use div.focus()
when display
is set to block
, but cursor is at the beggining of the text and I can't change its position to end on Chrome.
How can I make it to set cursor at the end, when the div gets focus?