set a maximum for lines in TextEdit

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By myrmos
:warning: Old Version Published before Godot 3 was released.

Is there a way, to set a maximum amount of lines in the TextEdit?