How to listen to sync.api.Workspace.EventType.BEFORE_EDITOR_LOADED event ?
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
-
- Posts: 64
- Joined: Wed Dec 03, 2014 11:25 am
How to listen to sync.api.Workspace.EventType.BEFORE_EDITOR_LOADED event ?
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
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: How to listen to sync.api.Workspace.EventType.BEFORE_EDITOR_LOADED event ?
Post by cristi_talau »
Hello,
The order of events during editor loading is the following:
Best,
Cristian
The order of events during editor loading is the following:
- BEFORE_EDITOR_LOADED is dispatched
- File content is read from the file server
- Framework is determined based on the content of the file
- JavaScript code from the framework is loaded
- EDITOR_LOADED_EVENT is dispatched
Best,
Cristian
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service