kiritsuku / amora

The semantic search engine where anyone can define anything anywhere
Apache License 2.0
30 stars 1 forks source link

Find a better way to calculate caret position #4

Open kiritsuku opened 9 years ago

kiritsuku commented 9 years ago

Several resources to consider:

This approach is too slow: http://stackoverflow.com/questions/4767848/get-caret-cursor-position-in-contenteditable-area-containing-html-content This library may be helpful but I don't think it is faster: https://github.com/timdown/rangy