How to listen to sync.api.Workspace.EventType.BEFORE_EDITOR_LOADED event ?
Posted: Fri Jul 07, 2023 8:22 am
Hello,
I try to customize Web Author listening the event sync.api.Workspace.EventType.BEFORE_EDITOR_LOADED in my-framework.js :
This code doesn' work.
If I listen to sync.api.Workspace.EventType.EDITOR_LOADED, it works
Why ?
I follow this guide : https://www.oxygenxml.com/doc/versions/ ... ing-option
I'm using oxygen web author version 25.1.0
Regards,
Vincent
I try to customize Web Author listening the event sync.api.Workspace.EventType.BEFORE_EDITOR_LOADED in my-framework.js :
Code: Select all
goog.events.listen(workspace, sync.api.Workspace.EventType.BEFORE_EDITOR_LOADED, (e) => {
console.info("extension enabled");
});
If I listen to sync.api.Workspace.EventType.EDITOR_LOADED, it works
Code: Select all
goog.events.listen(workspace, sync.api.Workspace.EventType.EDITOR_LOADED, (e) => {
console.info("extension enabled");
});
I follow this guide : https://www.oxygenxml.com/doc/versions/ ... ing-option
I'm using oxygen web author version 25.1.0
Regards,
Vincent