- From: Johannes Wilm <notifications@github.com>
- Date: Wed, 03 Jun 2015 07:49:35 -0700
- To: w3c/editing <editing@noreply.github.com>
Received on Wednesday, 3 June 2015 14:50:05 UTC
Imagine this: ``` <div contentEditable="typing"> <p>This is a test <span>t[ext</span></p> <p>This is a <b>secon]d paragraph</b></p> </div> ``` The []-symbols mark the start and the end of a selection. With this selection in place, the user now starts creating new input using IME. What do we do? We specifically tried to avoid for the UA to do paragraph merging or any changes to the DOM-structure. and the IME added characters will only create a beforeInput (intention) event, not an actual insertion by default. Solutions I can see: A) If the IME is to overwrite anything beyond the contents of a simple text node, the composition process is not done inline but rather in a little box next to the text. B) We first emit a beforeInput delete event, then start the composition process. C) IME handling is moved further to Javascript. I vote for B. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/editing/issues/59
Received on Wednesday, 3 June 2015 14:50:05 UTC