Catch "onchange" event of a document
Post here questions and problems related to oXygen frameworks/document types.
Catch "onchange" event of a document
Hello,
We use oxygen-18.1.0.0.jar, and we need to know when a document is changed (add/delete/update text or element, ...) in order to update our customize toolbar.
I try to override the method "editingOccured()" from the "InplaceEditingListener" interface but when I modify the document in the author page this method is not called.
How can I catch the "onchange" event of a document?
Thanks.
Regards,
Isabelle
We use oxygen-18.1.0.0.jar, and we need to know when a document is changed (add/delete/update text or element, ...) in order to update our customize toolbar.
I try to override the method "editingOccured()" from the "InplaceEditingListener" interface but when I modify the document in the author page this method is not called.
How can I catch the "onchange" event of a document?
Thanks.
Regards,
Isabelle
-
- Posts: 1009
- Joined: Wed Nov 16, 2005 11:11 am
Re: Catch "onchange" event of a document
Post by alex_jitianu »
Hi Isabelle,
The InplaceEditingListener is used only when creating custom form controls. For your use case you should use a ro.sync.ecss.extensions.api.AuthorListener. In the context of an Author Component, such a listener is added like this:
Best regards,
Alex
The InplaceEditingListener is used only when creating custom form controls. For your use case you should use a ro.sync.ecss.extensions.api.AuthorListener. In the context of an Author Component, such a listener is added like this:
Code: Select all
WSEditorPage currentPage = editorComponent.getWSEditorAccess().getCurrentPage();
if (currentPage instanceof WSAuthorEditorPage) {
AuthorDocumentController documentController = ((WSAuthorEditorPage) currentPage).getDocumentController();
documentController.addAuthorListener(new AuthorListenerAdapter() {
// TODO Override methods of interest.
});
}
Best regards,
Alex
Return to “SDK-API, Frameworks - Document Types”
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