Reload Content After Save
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
Reload Content After Save
Hi,
I have a plugin that performs a XSLT then reloads the editor content on button click. I would like to modify the behavior to run the XSLT when the user clicks the Save button but before the Save occurs, then reload the new saved document with the result of the XSLT.
Using the SaveHookExtension, I have been able to perform the transform inside the editorAboutToBeSavedVeto function, but I am unable to reload the contents of the editor, or even the entire webpage after the transform has been done and the document saved.
Is there a way to do this using ReloadContentOperation or editorAccess.reloadContent(newReader, true); inside the editorSaved function?
I have a plugin that performs a XSLT then reloads the editor content on button click. I would like to modify the behavior to run the XSLT when the user clicks the Save button but before the Save occurs, then reload the new saved document with the result of the XSLT.
Using the SaveHookExtension, I have been able to perform the transform inside the editorAboutToBeSavedVeto function, but I am unable to reload the contents of the editor, or even the entire webpage after the transform has been done and the document saved.
Is there a way to do this using ReloadContentOperation or editorAccess.reloadContent(newReader, true); inside the editorSaved function?
Re: Reload Content After Save
Hi,
Maybe this sample plugin is closer to what you want:
https://github.com/oxygenxml/wsaccess-j ... XSLTFilter
It's implemented in Javascript but the Javascript calls our Java APIs so you should be able to reuse the idea from here:
https://github.com/oxygenxml/wsaccess-j ... sAccess.js
Regards,
Radu
Maybe this sample plugin is closer to what you want:
https://github.com/oxygenxml/wsaccess-j ... XSLTFilter
It's implemented in Javascript but the Javascript calls our Java APIs so you should be able to reuse the idea from here:
https://github.com/oxygenxml/wsaccess-j ... sAccess.js
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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