handle anchor click in text, using core text