Compare commits

..

No commits in common. "master" and "v7.2.2.41" have entirely different histories.

5 changed files with 4 additions and 16 deletions

View file

@ -281,18 +281,6 @@ define([
})).on('closeclick', function () {
this.close();
}).show();
native.execCommand('webapps:features', JSON.stringify(features));
api.asc_registerCallback('asc_onDocumentName', function () {
if ( features.readonly ) {
if ( api.asc_getLocalRestrictions() == Asc.c_oAscLocalRestrictionType.None ) {
features.readonly = false;
header.setDocumentReadOnly(false);
native.execCommand('webapps:features', JSON.stringify(features));
}
}
});
}
}
});

View file

@ -525,7 +525,6 @@ define([
paperOrientation: size ? (size['H'] > size['W'] ? 'portrait' : 'landscape') : null
});
this.printSettings.menu.hide();
if ( print ) {
var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86);
opts.asc_setAdvancedOptions(this.adjPrintParams);
@ -535,6 +534,7 @@ define([
opts.asc_setAdvancedOptions(this.adjPrintParams);
this.api.asc_DownloadAs(opts);
}
this.printSettings.menu.hide();
},
inputPagesChanging: function (input, value) {

View file

@ -4,7 +4,7 @@ const EditorUIController = () => {
};
EditorUIController.isSupportEditFeature = () => {
return true
return false
};
EditorUIController.getToolbarOptions = () => {

View file

@ -1,6 +1,6 @@
const EditorUIController = () => null;
EditorUIController.isSupportEditFeature = () => true;
EditorUIController.isSupportEditFeature = () => false;
export default EditorUIController;

View file

@ -1,6 +1,6 @@
const EditorUIController = () => null;
EditorUIController.isSupportEditFeature = () => true;
EditorUIController.isSupportEditFeature = () => false;
export default EditorUIController;