Is it possible to highlight text and get the selection?
@Tom Ireland
@Andreas Møller / @Jacob Kofoed / @Erik Beuschau - Following on from office hours , I 'm still struggling with the span thing for placement of my action component when selecting text , so I dug a bit more into getRange and getClientBoundingRect . I managed to get it so that I log the custom action variables to the console with the results of those , so I can see that for my text selection range I have the x and y position of the whole text plus some other useful information . It 's a DOMRect object that 's returned but struggling to see the object values from the event - it just returns what appears to be an empty object even though it 's stored in the custom action variable and I 'm passing that back . I 've done a short Loom demonstrating the problem . Any help and advice gratefully received and if there is a much easier way using the span , I 'm all ears ! 🙂 https://www.loom.com/share/9a01da5be1ea4723bfc346a235e0e7f3?sid=605d09b6-6166-4d74-b9c7-b68ec898fdf2









.jpeg/public)