Set cursor to beginning after a setText or setHtml