The autodocs are very sparse on how to do any importing/exporting of text. How do you get the text via the hook?
What goes in the hook to export the text?
TEXT GlobalStringBuffer[1024]; struct GP_TEXTEDITOR_ExportText *GP_TE_ET; GP_TE_ET=IExec->AllocVecTags(sizeof(struct GP_TEXTEDITOR_ExportText), AVT_Type, MEMF_SHARED, AVT_ClearWithValue, 0, TAG_DONE); IIntuition->IDoMethodA(ChildObjects[GAD_TEXTEDITOR],(Msg)GP_TE_ET); IExec->FreeVec(GP_TE_ET); uint32 TextEditorExportTextHookFunc(struct Hook *hook,APTR texteditor,struct GP_TEXTEDITOR_ExportText *exportmsg) { // what goes in the hook???? return(0); }