How to add particular context menu into particular component?

Hi friends,

I need to add a particular task context menu and should add a selected item from context menu into task text area, as shown image below.

Please anyone help me…

Thanks
Santhosh