trix icon indicating copy to clipboard operation
trix copied to clipboard

Composition characters behave unexpected during composing when cursor is on trix-cursor-target span

Open alanyeh20001 opened this issue 4 years ago • 6 comments

Steps to Reproduce

The demo below is performed on https://trix-editor.org/

https://user-images.githubusercontent.com/15135426/114520557-28d32e00-9c74-11eb-8f1e-1a5dc7224367.mov

  1. Upload an attachment(image).
  2. Start typing characters that need composition after the attachment.
  3. If it is composing, the characters will align vertically rather than horizontally, which is unexpected.
  4. Press enter to end the composition, the characters align horizontally as expected but with a leading redundant which is used to compose the first character .

Looks like the strange composition behavior will happen when cursor is on <span data-trix-cursor-target="right" data-trix-serialize="false"></span> or <span data-trix-cursor-target="left" data-trix-serialize="false"></span> .

Thanks for go through this:)

Details
  • Trix version: 1.3.1
  • Browser name and version: Chrome(89.0.4389.90)
  • Operating system: MacOS 10.13.4

alanyeh20001 avatar Apr 13 '21 08:04 alanyeh20001

This issue has been automatically marked as stale after 90 days of inactivity. It will be closed if no further activity occurs.

stale[bot] avatar Jul 21 '21 04:07 stale[bot]

Any development here? I tried the v2 alpha and the problem is still there.

I also want to add that it can be triggered with simple dead keys (e.g. sequences 'a, ˇr or ¨u to type á, ř or ü end up with 'á, ˇř or ¨ü), full IME is not necessary here.

Thomaash avatar Jan 07 '22 12:01 Thomaash

Hello, i have the same problem. Can we help somehow? Send PR? Thank you for answer.

her-ur avatar Feb 07 '22 09:02 her-ur

Hi, I have tried v2.0.7 which is released this two weeks ago and the problem is still there. Is there any progress or update regarding this issue? Thx

sw-joechen avatar Oct 18 '23 10:10 sw-joechen

hello @afcapel , is there any progress~? we are still having this issue

sw-joechen avatar Mar 12 '24 05:03 sw-joechen

@sw-joechen not that I’m aware of, but PRs are welcomed.

afcapel avatar Mar 12 '24 08:03 afcapel