Closed juliusknorr closed 2 years ago
@eszkadev @pedropintosilva, please can you take a look sometime?
this._map.fire('changeuimode', {mode: msg.Values.Mode, force: false});
from browser/src/map/handler/Map.WOPI.js
switches the mode.
for more info see: browser/src/control/Control.UIManager.js onChangeUIMode
Switching the mode should also notify the integrator by post message. In UIManager we should send in onChangeUIMode
:
eg. map.fire('postMessage', {msgId: 'Action_ChangeUIMode_Resp', args: {Mode: 'notebookbar'}});
Is your feature request related to a problem? Please describe. Users have different preferences on the ui mode to either use the notebookbar or the classic toolbar.
Describe the solution you'd like An option to switch while editing a document between the two modes. E.g. through the Menu
View > Switch to classic toolbar
or
View > Switch to notebook bar
Describe alternatives you've considered A user setting on the integration side could be used to store the default, but immediate switching would be more intuitive.
Additional context This issue is the outcome of previous discussion with @jancborchardt and @pedropintosilva