### 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_caret_blink_interval(const float p_interval);
	float get_caret_blink_interval() const;
	void set_draw_caret_when_editable_disabled(bool p_enable);
	bool is_drawing_caret_when_editable_disabled() const;
	void set_move_caret_on_right_click_enabled(const bool p_enabled);
	bool is_move_caret_on_right_click_enabled() const;
	void set_caret_mid_grapheme_enabled(const bool p_enabled);
	bool is_caret_mid_grapheme_enabled() const;
	void set_multiple_carets_enabled(bool p_enabled);
	bool is_multiple_carets_enabled() const;
	int add_caret(int p_line, int p_col);
	void remove_caret(int p_caret);
	void remove_secondary_carets();
	void merge_overlapping_carets();
	int get_caret_count() const;
	void add_caret_at_carets(bool p_below);
	Vector<int> get_caret_index_edit_order();
	void adjust_carets_after_edit(int p_caret, int p_from_line, int p_from_col, int p_to_line, int p_to_col);
	bool is_caret_visible(int p_caret = 0) const;
	Point2 get_caret_draw_pos(int p_caret = 0) const;
	void set_caret_line(int p_line, bool p_adjust_viewport = true, bool p_can_be_hidden = true, int p_wrap_index = 0, int p_caret = 0);
	int get_caret_line(int p_caret = 0) const;
	void set_caret_column(int p_col, bool p_adjust_viewport = true, int p_caret = 0);
	int get_caret_column(int p_caret = 0) const;
	int get_caret_wrap_index(int p_caret = 0) const;
	String get_word_under_caret(int p_caret = -1) const;
	
	void set_selecting_enabled(const bool p_enabled);
	bool is_selecting_enabled() const;
	void set_deselect_on_focus_loss_enabled(const bool p_enabled);