implemented editor focus change word highlight