Character input by multi-cursor does not work if it is CJK

A problem occurs when inputting CJK (double-byte characters) with multiple cursors.
You can see it immediately by looking at the image.

画面収録-2022-01-04-14.30.58

The image was entered in the demo displayed on the top page of the site.

The image is operated with chrome96 (Mac).
With safari (Mac), even “knnth” is not entered, and all subcursors are blank.

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

Good point—because composition doesn’t tend to look like regular, selection-replacing input, it wasn’t going through the replaceSelection path. The patch below should help with this.

Thank you for your support during your busy schedule.

After that, I noticed that there was a problem with “placeholder” that seemed to be related.
If you enter CJK while “placeholder” is displayed, the first composition will be forcibly terminated.
I expect this bug to be fixed in the patch as well.

I’ll check this patch today.

I tried a patch.
・ CJK input with multiple cursors
In the chrome environment, the problem was fixed.

こんにちは
こんにちは
こんにちは

However, in Safari, it was still entered like this.

k
k
こんにちは
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15

There is still a problem with placeholder, so I will create another topic.