Word click to get word start and end position

I think you can achieve it by using this extension and anycomponent block