[DE forms] Fix Bug 53869

This commit is contained in:
Julia Radzhabova 2021-11-22 14:42:28 +03:00
parent 540a415826
commit fd46abba46
2 changed files with 1 additions and 11 deletions

View file

@ -1445,8 +1445,6 @@ define([
this.textMenu.items[0].setDisabled(!cancopy); // copy
this.textMenu.items[1].setDisabled(disabled || !cancopy); // cut
this.textMenu.items[2].setDisabled(disabled) // paste;
this.textMenu.items[3].setVisible(this.appOptions.canPrint);
this.textMenu.items[3].setDisabled(!cancopy);
this.showPopupMenu(this.textMenu, {}, event);
}
@ -1470,13 +1468,6 @@ define([
}
}
break;
case 'print':
var printopt = new Asc.asc_CAdjustPrint();
printopt.asc_setPrintType(Asc.c_oAscPrintType.Selection);
var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isSafari || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86); // if isChrome or isSafari or isOpera == true use asc_onPrintUrl event
opts.asc_setAdvancedOptions(printopt);
this.api.asc_Print(opts);
break;
}
},

View file

@ -92,8 +92,7 @@ define([
items: [
{ caption: this.textCut, value: 'cut', iconCls: 'mi-icon svg-icon cut' },
{ caption: this.textCopy, value: 'copy', iconCls: 'mi-icon svg-icon copy' },
{ caption: this.textPaste, value: 'paste', iconCls: 'mi-icon svg-icon paste' },
{ caption: this.textPrintSel, value: 'print', iconCls: 'mi-icon svg-icon print' }
{ caption: this.textPaste, value: 'paste', iconCls: 'mi-icon svg-icon paste' }
]
});
},