[presentation] Close the editor mode when leaving by other links than the exit button
@@ -771,6 +771,13 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
});
self.loadApp = function(app) {
+ if (self.currentApp() == 'editor') {
+ var vm = ko.dataFor($('#editorComponents')[0]);
+ if (vm.isPresentationMode()) {
+ vm.isPresentationMode(false);
+ }
+ }
+
self.currentApp(app);
if (!app.startsWith('security')) {
self.lastContext = null;
