Re: [w3c/editing] [beforeinput] Should we allow canceling the committed text from IME? (#128)

If this doesn't create technical difficulties, I think that would be preferable as it gives JS authors more options. In a basic setup they can let the user compose whatever characters they want, and then decide whether and how to embed the final text at the time the entire text is committed.

There may still be situations where one may want a ```cE=typing``` container. For example, in a collaborative editor, the edits of collaborators may change the structure of the document while composition is taking place. It will be difficult to make sure that none of the DOM structure around the currently composed character due to the work of collaborators. It will be easier to only make this decision at two points in time: when composition starts and when composition ends. If at both times the insertion of characters at the selection is possible, the edits go in. Otherwise not.

For example:

* User A is composing a series of characters inside a paragraph 1, while user B is switching the blocktype of paragraph 1 so that it becomes headline 1. 

* User A is composing a series of characters inside a paragraph 1, while user B is adding a comment to most of paragraph 1, which causes this part of the paragraph to be wrapped inside a ```<span class="comment comment-1">...</span>```.

---
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/128#issuecomment-217891878

Received on Monday, 9 May 2016 15:10:22 UTC