Hi David,
You would need to implement an Oxygen plugin for this.
Maybe you can take a look at this plugin:
https://github.com/oxygenxml/ExecuteAuthorActionsOnSaveHook
When content is saved in the Author visual editing mode, the plugin can
invoke a previously defined Author action.
So you do not need to modify the plugin's Java code, just the action ID
which should get called on save.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
On 4/11/2018 7:07 PM, David Levy wrote:
The current discussion "When a <fig> is inserted, it should contain a
<title> element" prompts me to ask what I'm sure is a trivial question.
I am using Oxygen to edit XML in text mode.
I would like an XML element <dateUpdated> to be updated automatically on
save.
I am aware of the of the ${date(pattern)} editor variable, but don't
know how to trigger an action on the save event or indeed what type of
code can be run once the event is detected.
The online example
<https://www.oxygenxml.com/doc/versions/20.0/ug-editorEclipse/topics/api_faq_auto_modify_content_save.html>
seemed to be in a DITA context and require the Plugins SDK, neither of
which I'm familiar with.
With thanks,
David Levy
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user