Fix textarea

@milang I'd like to get these changes into master, since the original repo appears to be dormant. Is that OK with you?