solved cursor not updating current position issue.  Also, cursor is now removed when user leaves editor