[DE] Disable adding comment to document from toolbar (add comment only for text)

This commit is contained in:
Julia Radzhabova 2019-03-21 12:50:12 +03:00
parent f2278f5cd6
commit c1e1ced4d2

View file

@ -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);