Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
I need to call a method right after a file is opened in the editor.
Is there such an event somewhere ? I can't find it.
Thanks.
Solved! Go to Solution.
Thanks for your answer, I ended up using doc_add_callback(current_doc(), 'context_changed', 'triggerContextChanged'); so that as soon as a click happened within the document, I was handling the logic from there. Which was sufficient enough for me.
Hi,
Search the Help Center topic for 'editinit'
• editinit subdirectory
Holds .acl, .js, .class, and .vbs files. Note that when you run Arbortext Editor with the -c option, any applications in this subdirectory are not executed at startup.
All files of the supported application types are executed each time a non-ASCII document is opened for editing. Files in this directory act on a document opened in the Edit window.
Files in this directory act on a document opened using AOM when the OPEN_EDITINIT flag is used with the Application.openDocument method.
I hope this is of help
Alexia
Thanks for your answer, I ended up using doc_add_callback(current_doc(), 'context_changed', 'triggerContextChanged'); so that as soon as a click happened within the document, I was handling the logic from there. Which was sufficient enough for me.