Add Custom Actions to the Contextual Menu
Use Case
You want to add your own custom actions to the contextual menu using an API.
Solution
The WSTextEditorPage.addPopUpMenuCustomizer API method allows you to customize the contextual menu shown in Text mode.