BUEditor has the API for finding selection position regarding the characters typed in the textarea. Using E.posSelection() method one can easily find the character position of the selection start and selection end.
How about the cursor offset(absolute position) in pixels? What if we want to display a box at the cursor position?
The only browser having native support for cursor offset is Internet Explorer. It supports offsetLeft and offsetTop properties for the selection range. Other browsers needs some tricky implementations to support it. For BUEditor users there is the seloffset library as a cross-browser solution to the problem.
You can test it in the demo by moving the cursor around or see the ACBox for a practical example.
E.offsetSelection();//returns {left: X, top: Y}
//or for any textarea:
//BUE.selOffset(textAreaObject);