0

Is there any way in JavaScript to get information about how the browser has placed the line change(Newline) for text in a p tag?

What I need is the ability to move and draw something similar to a "cursor" within a p tag.
Left and right are easy enough to handle, but in order to move the cursor up/down I need to know where the browser has placed the line change, and I can't seem to find that. Is it possible?

What I am trying to do is a bit more complicated then then description above. This description is just the core of my problem.

I can't use a rich text area, and the real keyboard cursor to handle my use case.

user2428118
  • 7,935
  • 4
  • 45
  • 72
MTilsted
  • 5,425
  • 9
  • 44
  • 76

0 Answers0