Compare commits

..

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

5 changed files with 4 additions and 5 deletions

View file

@ -288,7 +288,6 @@ define([
if ( features.readonly ) { if ( features.readonly ) {
if ( api.asc_getLocalRestrictions() == Asc.c_oAscLocalRestrictionType.None ) { if ( api.asc_getLocalRestrictions() == Asc.c_oAscLocalRestrictionType.None ) {
features.readonly = false; features.readonly = false;
header.setDocumentReadOnly(false);
native.execCommand('webapps:features', JSON.stringify(features)); native.execCommand('webapps:features', JSON.stringify(features));
} }
} }

View file

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

View file

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

View file

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

View file

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