Re: [w3c/editing] EditContext: Do IME see the plaintext in `EditContext`? (#342)

@masayuki-nakano we have added a new event CharacterBoudnsUpdateEvent and new API updateCharacterBounds, where CharacterBoundsUpdateEvent describes what character bounds are needed by the Text Input Service. After receiving CharacterBoundsUpdateEvent, the author is responsible to compute the requested character bounds and call updateCharacterBounds to update the character bounds cached in the EditContext. (please see the [example 3](https://w3c.github.io/editing/docs/EditContext/#example-event-handlers-for-textupdateevent-textformatupdateevent-and-characterboundsupdateevent) in the spec for more details)

Do you think this API is sufficient to cover your 4 scenarios? or do you think we'll need an event/API that support an array of ranges? note we have updateSelectionBound API that can let the author set the caret bound, so it should cover your 2nd scenario when there is no text.

also do you know how to trigger Kakutei-Undo on Windows?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/342#issuecomment-964844441

Received on Wednesday, 10 November 2021 07:10:20 UTC