Thanks! The idea when looking for the x/y coordinates is that you can get the position of the associated rectangle, like so:

const rect = range.getClientRects()[0];

if (rect) {

x = rect.left;

y = rect.top;

}

Does this help you? :D

Konstantin Münster
Konstantin Münster

Written by Konstantin Münster

Writing about Web Development and Freelancing. // konstantin.digital

No responses yet