Page 1 of 1

editorAboutToBeSavedVeto with automatic saves

Posted: Wed Aug 30, 2023 1:13 pm
by Johann
Hello,

In Author web, we have set up a control to prevent saving when the document is invalid.
To do this, we've used the editorAboutToBeSavedVeto method.

We'll now take a look at setting up automatic saving with

Code: Select all

e.options.autoSaveInterval
We note that automatic saves do not trigger the editorAboutToBeSavedVeto method.
We'd still like to prevent saving (even automatically) when the document is invalid.

Is this possible?

Thank you for your help,

Johann

Re: editorAboutToBeSavedVeto with automatic saves

Posted: Wed Aug 30, 2023 3:01 pm
by cosminef
Hi,
Unfortunatelly currently there is no API to intercept autosave in Oxygen XML Web Author. But we have an issue registered in our internal issue tracker and I've registered your interest.

If you absolutely need to block saving invalid docs, you may consider using that sample plugin and disabling autosave with &autoSaveInterval=0 URL parameter.

Also, we created a plugin that blocks saving invalid documents, but automatic saves are not blocked [1]

[1] https://github.com/oxygenxml/web-author ... if-invalid

Re: editorAboutToBeSavedVeto with automatic saves

Posted: Thu Aug 31, 2023 11:17 am
by Johann
Hello,

Ok, thanks for the explanations.

Could you notify me through this post when the feature is ready?

Regards,

Johann

Re: editorAboutToBeSavedVeto with automatic saves

Posted: Thu Aug 31, 2023 11:31 am
by cosminef
Hello Johann,
Of course, we will inform you as soon as the feature is available
Best Regards,
Cosmin