Fixed textarea cursor positioning issues