Page 1 of 1

No Save button in Text mode when hiding App bar

Posted: Thu Aug 22, 2024 8:03 pm
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

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

Posted: Fri Aug 23, 2024 10:27 am
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".

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

Posted: Fri Aug 23, 2024 6:15 pm
by Johann
Hello Bogdan,

Thank you, it solved my problem!

Regards,
Johann