mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[PDF] Fix redact mark
This commit is contained in:
@ -115,6 +115,12 @@ define([
|
||||
|
||||
onStartRedact: function(isMarkMode) {
|
||||
Common.UI.TooltipManager.closeTip('mark-for-redaction');
|
||||
if (isMarkMode && this.toolbar) {
|
||||
this.toolbar.turnOnSelectTool();
|
||||
this.api.SetMarkerFormat(undefined, false);
|
||||
this.api.asc_StopInkDrawer();
|
||||
this.toolbar.onClearHighlight();
|
||||
}
|
||||
this.api.SetRedactTool(isMarkMode);
|
||||
},
|
||||
|
||||
@ -224,6 +230,8 @@ define([
|
||||
|
||||
onRedactionStateToggle: function(isRedaction) {
|
||||
this.view.btnMarkForRedact.toggle(isRedaction);
|
||||
if (this.toolbar)
|
||||
isRedaction ? this.toolbar.clearSelectTools() : this.toolbar.updateSelectTools();
|
||||
},
|
||||
|
||||
SetDisabled: function(state) {
|
||||
|
||||
@ -954,6 +954,7 @@ define([
|
||||
this._state.select_tool = type==='select';
|
||||
this.api.asc_setViewerTargetType(type);
|
||||
this.mode.isEdit && this.api.asc_StopInkDrawer();
|
||||
this.mode.isEdit && this.api.SetRedactTool(false);
|
||||
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user