basecamp / basecamp/trix

input Chinese will have problem after insert image

Open
#987 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20k
Forks
1.1k
Avg merge
3d 12h
Merged PRs (30d)
13

Description

after insert image immediately input Chinese(or any other language with similar input method I assume) will have problem, the first English char will be inserted before Chinese word, and while input, layout is incorrect, see the image below

![image](https://user-images.githubusercontent.com/1032483/185027884-0aec936c-6732-4fc2-8f93-3a1df07a7e71.png)

![image](https://user-images.githubusercontent.com/1032483/185027923-8c2f84ee-6cd8-44bf-b601-05b5d0052dab.png)

add a space after image will not have this issue.

##### Steps to Reproduce

It can be reproduced in Trix home page https://trix-editor.org/

##### Details

* Trix version: Latest version
* Browser name and version: Chrome 104.0.5112.79 (Official Build) (arm64)
* Operating system: macOS Monterey 12.4

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.