Add context menu items and function to get highlighted text