- From: Johannes Wilm <notifications@github.com>
- Date: Wed, 27 May 2015 20:14:55 -0700
- To: w3c/editing-explainer <editing-explainer@noreply.github.com>
- Message-ID: <w3c/editing-explainer/issues/56/106157799@github.com>
Yes, so imagine the above example, but with way more text: ``` <adiv contenteditable=true> blablab labla... <span class="digitalone"><span class="digitaltwo">Some words</span></span> blabbal abla... </div> ``` The caret is somewhere in the second "blablabala" portion and the user clicks "up" and the caret just happens to go at the end of "Some words". Now where is it really? Inside of both spans, just one or outside of both? Difficult to say. Having the "the browser moves the caret and then the user adjusts it" is what is going on today with some success. If you want the caret to insert something within the second span, one may insert a letter behind the first span, then select the letter, then paste whatever one really wanted to insert. That should pretty much do it. But it's not very clean and not in line with the idea of using intentions. Also because you need to check the caret position **every** time you move the caret in any direction. So instead of moving automatically, it would be nicer if the browser simply said where it would move it, and one can then adjust that before the actual movement takes place. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/editing-explainer/issues/56#issuecomment-106157799
Received on Thursday, 28 May 2015 03:15:25 UTC