As a follow-on, is it possible to force a refresh when someone selects a folder from the image manager?
I'm using the session variable as a workaround for now, but when I select a new product, open the editor, and then select the image gallery, I see the images for the previous product. I hit refresh, and they update to the current product. Can I work this so that the user isn't forced to do a refresh each time?
BTW, I also was able to get a reference to the image gallery, but only if it has been opened once. I used
var MyImageManager = MyEditor.getToolByName('ImageManager');
If I haven't loaded the image gallery at least once, this returns a null. After that, it does give me a reference to an object.
So, assuming I can pass some information to the image manager, I want to be able to force a refresh, and now I also want to know if I can get a reference to the image manager before the user has attempted to open it once.