mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 02:29:58 +08:00
[PDFE] fix for using with launch controller
This commit is contained in:
@ -189,6 +189,10 @@ require([
|
||||
'common/main/lib/controller/Draw',
|
||||
'common/main/lib/controller/Protection'
|
||||
], function() {
|
||||
app.postLaunchScripts = [
|
||||
'pdfeditor/main/code',
|
||||
];
|
||||
|
||||
app.start();
|
||||
});
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ define([
|
||||
'common/main/lib/util/LocalStorage',
|
||||
'pdfeditor/main/app/collection/ShapeGroups',
|
||||
'common/main/lib/controller/FocusManager',
|
||||
'common/main/lib/controller/ScreenReaderFocus',
|
||||
'common/main/lib/controller/LaunchController',
|
||||
'common/main/lib/controller/HintManager',
|
||||
'common/main/lib/controller/LayoutManager',
|
||||
'common/main/lib/controller/ExternalUsers'
|
||||
@ -136,9 +136,9 @@ define([
|
||||
this.api = this.getApplication().getController('Viewport').getApi();
|
||||
|
||||
Common.UI.FocusManager.init();
|
||||
Common.UI.ScreenReaderFocusManager.init(this.api);
|
||||
Common.UI.HintManager.init(this.api);
|
||||
Common.UI.Themes.init(this.api);
|
||||
Common.Controllers.LaunchController.init(this.api);
|
||||
|
||||
if (this.api){
|
||||
this.api.SetDrawingFreeze(true);
|
||||
|
||||
@ -179,6 +179,10 @@ require([
|
||||
,'common/main/lib/controller/Draw'
|
||||
,'common/main/lib/controller/Protection'
|
||||
], function() {
|
||||
app.postLaunchScripts = [
|
||||
'common/main/lib/controller/ScreenReaderFocus',
|
||||
];
|
||||
|
||||
window.compareVersions = true;
|
||||
app.start();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user