fix the position of the caret after removeContent (+one right)