Replace the custom ContextMenu with your one when you select a text. It also returns the selected text.