- From: spocke <notifications@github.com>
- Date: Thu, 11 Nov 2021 00:30:32 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 11 November 2021 08:30:46 UTC
We have struggled to get tinymce to work within a shadowRoot without using an iframe and part of that is that we can't get the selection out from within the shadowRoot this `getComposedRange` just partially solves that since we also need to know the selection direction currently we determine that from comparing the focusNode/anchorNode/focusOffset/anchorOffset properties of the selection. From my understanding of the proposal the focusNode/anchorNode/focusOffset/anchorOffset will just be set to the `Selection.getRange(0)` that would mean it would always be collapsed or always be in one direction. Not sure how to solve this maybe have a function similar to `getComposedRange` that takes a set of roots and returns if it's forwards or backwards or that it instead of a StaticRange returns a new type of object that has focusNode/anchorNode/focusOffset/anchorOffset/collapsed properties like a StaticSelection or something. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/79#issuecomment-966089762
Received on Thursday, 11 November 2021 08:30:46 UTC