Skip to content

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

Open
@alanyeh20001

Description

@alanyeh20001
Steps to Reproduce

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

trix_composition_bug.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions