Sets the caret position to the right place after place the text.