Limit writable TextArea?

I have a dialogue box that only allows 3 lines to show, and I want to only be able to write 3 lines in a single string (in the inspector), how do I do that?

I’ve got “[TextArea(3, 10)]” but that only limits how many lines are visible at once. You can still insert more lines.

Mh, dunno if you can make this possible, you can do an edior script and try it.
It’s possible to chech the lenght of the script: [SOLVED] How to limit string length in text area ? [Editor Scripting]