Automattic / Automattic/isolated-block-editor

Collab: Pause incoming remote changes while CJK composition is active

Open
#120 0 comments 0 reactions 0 assignees View on GitHub
[Feature] Collaboration bug
Dominant language
CSS
Stars
409
Forks
66
PR merge metrics
No merged PRs in 30d

Description

## Steps to reproduce

1. In the first Paragraph block, Peer 1 types in English.
2. In the second Paragraph block, Peer 2 simultaneously types in Japanese using an IME.
3. Peer 2 will have trouble entering characters because their input gets overwritten by remote updates before IME composition is finalized.

## Possible fix

Listen for [`compositionstart`](https://developer.mozilla.org/en-US/docs/Web/API/Element/compositionstart_event) events and pause the processing of incoming remote changes until the `compositionend` event is detected.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the incoming remote-change handling and the editor's compositionstart/compositionend event flow. Reproduce the two-paragraph collaboration scenario with Japanese IME input; done means remote changes no longer overwrite text while composition is active and resume after compositionend.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.