Tarun Dugar
Tarun Dugar

Reputation: 8971

Get caret's visual position with respect to window in contenteditable div

I have contenteditable div, and I need to show a dropdown just below the current position of the caret.

For instance, if I type 'foofoofoofoo' in my div, I need to show a dropdown just below the current position of the caret which is at the end of 'foofoofoofoo'. How do I determine this position?

Upvotes: 1

Views: 36

Answers (1)

Tarun Dugar
Tarun Dugar

Reputation: 8971

This library worked like a charm.

Upvotes: 1

Related Questions