Jun 11, 2021
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
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
Writing about Web Development and Freelancing. // konstantin.digital