The following procedure applies to either the Before context menu event or Before editor context menu event field.
Select the Script that you want to edit.
Click the Popup button to the right of the field with the selected script.
Select Edit Script on the Popup menu.
The Edit Script window opens displaying the selected script.
Edit and recompile the script.
Close the Edit Script window.
Result: The revised script will be used the next time it is called.
3. Before Context Menu/Before Editor Context Menu global events.