[DE] Disable adding comment to document from toolbar (add comment only for text)
This commit is contained in:
parent
f2278f5cd6
commit
c1e1ced4d2
|
@ -783,7 +783,7 @@ define([
|
|||
if (toolbar.listStylesAdditionalMenuItem && (frame_pr===undefined) !== toolbar.listStylesAdditionalMenuItem.isDisabled())
|
||||
toolbar.listStylesAdditionalMenuItem.setDisabled(frame_pr===undefined);
|
||||
|
||||
need_disable = (paragraph_locked || header_locked) && this.api.can_AddQuotedComment() || image_locked;
|
||||
need_disable = !this.api.can_AddQuotedComment() || paragraph_locked || header_locked || image_locked;
|
||||
if ( this.btnsComment && this.btnsComment.length > 0 )
|
||||
this.btnsComment.setDisabled(need_disable);
|
||||
|
||||
|
|
Loading…
Reference in a new issue