add methods extentsAtCaret and extentsOnFocus