Reload Content After Save
Posted: Thu Nov 16, 2023 10:58 pm
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?