From e7cec07aad60f3f3c43e997f7b7a725ab1a97a8b Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 20 Dec 2019 16:18:17 +0300 Subject: [PATCH] Bug 40362, Bug 43365, Bug 42936 --- apps/documenteditor/main/app/controller/Toolbar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 0b38790b7..cd83d8994 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -743,10 +743,10 @@ define([ if (sh) this.onParagraphColor(sh); - var rich_del_lock = (frame_pr) ? !frame_pr.can_DeleteBlockContentControl() : true, - rich_edit_lock = (frame_pr) ? !frame_pr.can_EditBlockContentControl() : true, - plain_del_lock = (frame_pr) ? !frame_pr.can_DeleteInlineContentControl() : true, - plain_edit_lock = (frame_pr) ? !frame_pr.can_EditInlineContentControl() : true; + var rich_del_lock = (frame_pr) ? !frame_pr.can_DeleteBlockContentControl() : false, + rich_edit_lock = (frame_pr) ? !frame_pr.can_EditBlockContentControl() : false, + plain_del_lock = (frame_pr) ? !frame_pr.can_DeleteInlineContentControl() : false, + plain_edit_lock = (frame_pr) ? !frame_pr.can_EditInlineContentControl() : false; var need_disable = paragraph_locked || header_locked || rich_edit_lock || plain_edit_lock; if (this._state.prcontrolsdisable != need_disable) {