Skip to content

Commit

Permalink
Disable loading image from url in viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Nov 6, 2024
1 parent ee088b2 commit 32b0459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/documenteditor/main/app/controller/DocumentHolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1759,7 +1759,7 @@ define([
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
}
})).show();
} else if (obj.pr && obj.pr.is_Signature()) { // select signature picture only from local file
} else if (obj.pr && obj.pr.is_Signature() || !me.mode.canSaveToFile) { // select picture for signature or in viewer only from local file
this.api.asc_addImage(obj.pr);
setTimeout(function(){
me.api.asc_UncheckContentControlButtons();
Expand Down

0 comments on commit 32b0459

Please sign in to comment.