I am trying to make a dynamic text editor in SVG using two.js, I have a custom blinking cursor (cursor functionality, it is same as input field in HTML like I can move around the cursor in sentence edit, add, delete characters). I want to place the cursor exactly after a specific character.
I am picking up the DOM width using .getBBox()
and .getBoundingClientRect
and maintaining the cursor position but I am facing a problem when I am trying to edit in the middle of the sentence.