### 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)

void set_scroll_past_end_of_file_enabled(const bool p_enabled);
	bool is_scroll_past_end_of_file_enabled() const;
	VScrollBar *get_v_scroll_bar() const;
	HScrollBar *get_h_scroll_bar() const;
	void set_v_scroll(double p_scroll);
	double get_v_scroll() const;
	void set_h_scroll(int p_scroll);
	int get_h_scroll() const;
	void set_v_scroll_speed(float p_speed);
	float get_v_scroll_speed() const;
	void set_fit_content_height_enabled(const bool p_enabled);
	bool is_fit_content_height_enabled() const;
	double get_scroll_pos_for_line(int p_line, int p_wrap_index = 0) const;
	
	void set_line_as_first_visible(int p_line, int p_wrap_index = 0);
	int get_first_visible_line() const;
	void set_line_as_center_visible(int p_line, int p_wrap_index = 0);
	void set_line_as_last_visible(int p_line, int p_wrap_index = 0);
	int get_last_full_visible_line() const;
	int get_last_full_visible_line_wrap_index() const;
	int get_visible_line_count() const;
	int get_visible_line_count_in_range(int p_from, int p_to) const;
	int get_total_visible_line_count() const;
	
	void adjust_viewport_to_caret(int p_caret = 0);
	void center_viewport_to_caret(int p_caret = 0);
	
	void set_draw_minimap(bool p_enabled);
	bool is_drawing_minimap() const;
	void set_minimap_width(int p_minimap_width);