ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.34k stars 3.68k forks source link

When a single Korean character is entered, the change:data and change events do not trigger. #16692

Open eggleee opened 2 months ago

eggleee commented 2 months ago

πŸ“ Provide detailed reproduction steps (if any)

When a single Korean character is entered, the change:data and change events do not trigger.

βœ”οΈ Expected result

When a single Korean character is entered, the change:data or change event is triggered.

❌ Actual result

When a single Korean character is entered, the change:data and change events do not trigger.

❓ Possible solution

If you have ideas, you can list them here. Otherwise, you can delete this section.

πŸ“ƒ Other details

https://github.com/ckeditor/ckeditor5/assets/158118277/6922a667-bd95-43bb-9755-f57094854c8f


If you'd like to see this fixed sooner, add a πŸ‘ reaction to this post.

Reinmar commented 2 months ago

cc @niegowski

niegowski commented 1 month ago

This is happening because of how we handle composition. IME is very fragile (it easily breaks if we modify DOM while a user is composing), so we do not insert changes to the editor model on desktop browsers until the user commits the composition. That's why the change event is not fired before the composition is inserted into the model.