When entering special symbols for Chinese, Japanese and Korean, the system will automatically wrap the line

Describe the bug
A clear and concise description of what the bug is.
When you enter special characters in Chinese, Japanese and Korean languages, such as “:、?”, the system will automatically wrap
To Reproduce
Steps to reproduce the behavior:
Enter the above special characters in a blank line and they will appear. If there is text after the characters, this problem will not occur

Expected behavior
fix bug

Server details:

  • Nextcloud version:31.0.2

  • PHP Version: [e.g. 8.2]

  • Database:mysql

Client details:

  • OS: [e.g. Windows/macOS/Ubuntu] all

  • Browser: Chrome

  • Browser version: all


# User Guide

This is a custom-enhanced version based on **Nextcloud Text 3.10.1**, mainly addressing the following issues:

1. The inability to create new files in Nextcloud 31.0 and above.

2. The cursor disappearing when typing specific East Asian characters.

## :bullseye: **Feature Description**

Fix reference: When entering special symbols for Chinese, Japanese and Korean, the system will automatically wrap the line · Issue #7027 · nextcloud/text · GitHub

### Version Compatibility

```

Nextcloud version detection

┌─────────────────────────────────────┐

│ Version < 31.0.10? │

└─────────────────────────────────────┘

↓ ↓

Yes No

↓ ↓

Use injectFn Register via event

in boot() listeners in register()

↓ ↓

:white_check_mark: 29.x, 30.x :white_check_mark: 31.0.10+

31.0.0-31.0.9 32.x+

```

### Supported Versions

- :white_check_mark: **Nextcloud 31.0.0 – 31.0.9**

- :white_check_mark: **Nextcloud 31.0.10 and above**

```