I want to get the filename on "File Opened" event.

Started by: crowdy2 voices3 posts

Hi.
I'm trying to write "File Opened" event handler.
and have found that "editor.ActiveDocument.FileName" does not return the filename to open.

alert(editor.ActiveDocument.FileName);


how can I get the filename to open?
thank you
It should be

alert(editor.ActiveDocument.Name);

Ah! It works
I should have read Help carefully.

thanks.

3 posts in this topic