Skip to content

Commit

Permalink
Merge pull request 'Set pdf viewer option' (#88) from fix/pdf-view in…
Browse files Browse the repository at this point in the history
…to hotfix/v8.2.1
  • Loading branch information
Julia Radzhabova committed Oct 21, 2024
2 parents 0a07d14 + b2c4d7d commit 9fbda96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/documenteditor/embed/js/ApplicationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ DE.ApplicationController = new(function(){
appOptions.isOForm = !!(type && typeof type[1] === 'string'); // oform and docxf

api.asc_setViewMode(!appOptions.canFillForms);
api.asc_setPdfViewer(!appOptions.canFillForms);

btnSubmit = $('#id-btn-submit');

Expand Down
1 change: 1 addition & 0 deletions apps/documenteditor/mobile/src/controller/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ class MainController extends Component {
applyMode (appOptions) {
this.api.asc_enableKeyEvents(appOptions.isEdit);
this.api.asc_setViewMode(!appOptions.isEdit && !appOptions.isRestrictedEdit);
this.appOptions.isCorePDF && this.api.asc_setPdfViewer(!appOptions.isEdit && !appOptions.isRestrictedEdit);
appOptions.isRestrictedEdit && appOptions.canComments && this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyComments);
appOptions.isRestrictedEdit && appOptions.canFillForms && this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyForms);

Expand Down

0 comments on commit 9fbda96

Please sign in to comment.