You can export a string variable with a multi-line hint as follows:
# The MULTILINE setting tells the editor to show a large input
# field for editing over multiple lines.
export(String, MULTILINE) var text
You can click the "expand" icon at the right of the TextEdit to make it larger, which is more convenient for writing long texts.
See GDScript exports for more information.