editorAboutToBeSavedVeto with automatic saves

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
Johann
Posts: 199
Joined: Wed Jun 17, 2015 12:46 pm

editorAboutToBeSavedVeto with automatic saves

Post 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
cosminef
Site Admin
Posts: 84
Joined: Wed Aug 30, 2023 2:33 pm

Re: editorAboutToBeSavedVeto with automatic saves

Post 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
Cosmin Eftenie
www.oxygenxml.com
Johann
Posts: 199
Joined: Wed Jun 17, 2015 12:46 pm

Re: editorAboutToBeSavedVeto with automatic saves

Post by Johann »

Hello,

Ok, thanks for the explanations.

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

Regards,

Johann
cosminef
Site Admin
Posts: 84
Joined: Wed Aug 30, 2023 2:33 pm

Re: editorAboutToBeSavedVeto with automatic saves

Post by cosminef »

Hello Johann,
Of course, we will inform you as soon as the feature is available
Best Regards,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
Post Reply