This will make the TextEditor forward all mouse events to your ExampleAudioProcessor instance’s void mouse* (MouseEvent&) callbacks. You can then use the MouseEvent's originComponent and eventComponent properties to filter and process the events to trigger whatever you want.
My plug-in requires the user to login with an email address and password. When the plug-in’s GUI is active, the text editor has keyboard focus, so therefore none of the host application’s key commands work. So then I set aTextEditor.setWantsKeyboardFocus() == false to allow the host application’s key commands to work as normal. So now I need to set aTextEditor.setWantsKeyboardFocus() == true when the user clicks on the text, otherwise the TextEditor text cannot be edited.