tags:

views:

24

answers:

0

I set a limit text, but when pasting in text containing new-lines, it's possible to get the reported length longer than the set limit. Some limit is still in place, but for instance I can set a limit of 4000, paste in 6000 chars and the control reports the length as 4010.

Or I can get the reported length as 3098 and then enter 4 new-lines, pushing the reported length to 4006.

Are there easy workarounds here? The whole reason we set a limit is so we can guarantee it will fit into a DB field... if it's inconsistent that's going to be a pain.