mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
[DE-form] Fix load shortcuts controller
This commit is contained in:
@ -130,7 +130,8 @@ require([
|
||||
controllers : [
|
||||
'ApplicationController',
|
||||
'Plugins',
|
||||
'SearchBar'
|
||||
'SearchBar',
|
||||
'Common.Controllers.Shortcuts'
|
||||
],
|
||||
features: {
|
||||
uitype: 'fillform',
|
||||
@ -152,6 +153,7 @@ require([
|
||||
'common/main/lib/controller/Themes',
|
||||
'common/main/lib/controller/Desktop',
|
||||
'common/main/lib/view/SearchBar',
|
||||
'common/main/lib/controller/Shortcuts',
|
||||
'common/forms/lib/view/modals'
|
||||
], function() {
|
||||
const code_path = !window.isIEBrowser ? 'documenteditor/forms/code' : 'documenteditor/forms/ie/code';
|
||||
|
||||
@ -1603,6 +1603,7 @@ define([
|
||||
var zf = (this.appOptions.customization && this.appOptions.customization.zoom ? parseInt(this.appOptions.customization.zoom) : 100);
|
||||
(zf == -1) ? this.api.zoomFitToPage() : ((zf == -2) ? this.api.zoomFitToWidth() : this.api.zoom(zf>0 ? zf : 100));
|
||||
|
||||
DE.getController('Common.Controllers.Shortcuts').setApi(me.api);
|
||||
this.createDelayedElements();
|
||||
|
||||
this.api.asc_registerCallback('asc_onStartAction', _.bind(this.onLongActionBegin, this));
|
||||
|
||||
@ -138,7 +138,7 @@ define([
|
||||
});
|
||||
this.btnUndo.render($('#id-btn-undo'));
|
||||
DE.getController('Common.Controllers.Shortcuts').updateShortcutHints({
|
||||
Undo: {
|
||||
EditUndo: {
|
||||
btn: this.btnUndo,
|
||||
label: this.tipUndo
|
||||
}
|
||||
@ -152,7 +152,7 @@ define([
|
||||
});
|
||||
this.btnRedo.render($('#id-btn-redo'));
|
||||
DE.getController('Common.Controllers.Shortcuts').updateShortcutHints({
|
||||
Redo: {
|
||||
EditRedo: {
|
||||
btn: this.btnRedo,
|
||||
label: this.tipRedo
|
||||
}
|
||||
|
||||
@ -119,7 +119,8 @@ require([
|
||||
controllers : [
|
||||
'ApplicationController',
|
||||
'Plugins',
|
||||
'SearchBar'
|
||||
'SearchBar',
|
||||
'Common.Controllers.Shortcuts'
|
||||
]
|
||||
});
|
||||
|
||||
@ -142,6 +143,7 @@ require([
|
||||
'common/main/lib/controller/Themes',
|
||||
'common/main/lib/controller/Desktop',
|
||||
'common/main/lib/view/SearchBar',
|
||||
'common/main/lib/controller/Shortcuts',
|
||||
'common/forms/lib/view/modals'
|
||||
], function() {
|
||||
app.postLaunchScripts = [
|
||||
|
||||
Reference in New Issue
Block a user