FCKEditor/cursor position

hi!

i need to get cursor position in fckeditor and do sth with text before and after cursor, maybe one of You guys, know how to do it?

thanks in advance,
regards