Fixed iPad bug when using the text editor view