Limit <textarea> input to 16,777,215 characters

This corresponds to the maximum length of `mediumtext` fields in MySQL. This change only affects the front-end.