### Godot version

4.0 stable

### System information

Manjaro Linux, kernel 6.1.1-1-MANJARO, AMD Ryzen 5 3600, AMD RX 580

### Issue description

The `wrap_mode` property of the `TextEdit` node doesn't seem to really do anything. Setting it to `LINE_WRAPPING_BOUNDARY` simply means that there won't be an horizontal scrollbar if the text overshoots the boundary, instead of actually forcing the text to the next line so that it stays visible.

### Steps to reproduce

Create a TextEdit node and set its `wrap_mode` property to `LINE_WRAPPING_BOUNDARY`

### Minimal reproduction project

[WrapBugDemo.zip](https://github.com/godotengine/godot/files/10875969/WrapBugDemo.zip)

int get_line_count() const;
	void set_placeholder(const String &p_text);
	String get_placeholder() const;
	void set_line(int p_line, const String &p_new_text);
	String get_line(int p_line) const;
	int get_line_width(int p_line, int p_wrap_index = -1) const;
	int get_line_height() const;
	int get_indent_level(int p_line) const;
	int get_first_non_whitespace_column(int p_line) const;
	void swap_lines(int p_from_line, int p_to_line);
	void insert_line_at(int p_at, const String &p_text);
	void insert_text_at_caret(const String &p_text, int p_caret = -1);
	void remove_text(int p_from_line, int p_from_column, int p_to_line, int p_to_column);
	int get_last_unhidden_line() const;
	int get_next_visible_line_offset_from(int p_line_from, int p_visible_amount) const;
	Point2i get_next_visible_line_index_offset_from(int p_line_from, int p_wrap_index_from, int p_visible_amount) const;
	
	void handle_unicode_input(const uint32_t p_unicode, int p_caret = -1);
	void backspace(int p_caret = -1);
	void cut(int p_caret = -1);
	void copy(int p_caret = -1);
	void paste(int p_caret = -1);
	void paste_primary_clipboard(int p_caret = -1);
	
	PopupMenu *get_menu() const;
	bool is_menu_visible() const;
	void menu_option(int p_option);
	
	void start_action(EditAction p_action);
	void end_action();