No Save button in Text mode when hiding App bar

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

No Save button in Text mode when hiding App bar

Post by Johann »

Hello,

I am using Web Author 26.1.0.1 version.

I try to hide the AppBar with:

Code: Select all

workspace.getViewManager().hideAppBar();
It works but I do not have the Save button in Text mode anymore.
I have only Undo / Redo and swith to Author view buttons.
Is it normal?

Thank you for your help,

Johann
Bogdan Dumitru
Site Admin
Posts: 172
Joined: Tue Mar 20, 2018 5:28 pm

Re: No Save button in Text mode when hiding App bar

Post by Bogdan Dumitru »

Hello Johann,

The application shows the save button on toolbar in text mode only if the following conditions are met:
  • the autosave is disabled or has an interval of save greater greater than 5s. See the "autoSaveInterval" Loading Option
  • the save/autosave action is considered that supports saving when text mode is active. The built-in save/autosave action supports saving when text mode is active because it doesn't save the document if it's not well-formed. To verify this condition, the application checks that the action with id "Author/Save" is still registered and there is no other action with the shortcut "M1 S".
Bogdan Dumitru
http://www.oxygenxml.com
Johann
Posts: 240
Joined: Wed Jun 17, 2015 12:46 pm

Re: No Save button in Text mode when hiding App bar

Post by Johann »

Hello Bogdan,

Thank you, it solved my problem!

Regards,
Johann
Post Reply