- From: Johannes Wilm <notifications@github.com>
- Date: Fri, 14 Aug 2020 08:32:25 -0700
- To: w3c/editing <editing@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 14 August 2020 15:32:41 UTC
I agree with @reinmar that EditContext is not doing what is needed in terms of caret movement. But it was my understanding that one could couple EditContext with `contenteditbale=caret-only` or similar to let the browser take care of selection movement. And until such a mode exists, it should work with `contenteditable=true` where one rolls back any change that the browser may then make to the dom element (before reapplying what it really needs to do), so that one effectively created a `caret-only` mode. Background: Creating your own selection entirely in JS for a richtext editor is difficult, yet necessary in some cases. JS editors seem to mostly work with a combination where it generally uses the browser native selection, but in some cases (such as the user selecting a column of a table), it overrides with it's own selection-mechanism. -- 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/266#issuecomment-674131346
Received on Friday, 14 August 2020 15:32:41 UTC