[DE] Fix comment lock
This commit is contained in:
parent
1c17f8bd99
commit
0cc5275625
|
@ -3213,7 +3213,8 @@ define([
|
||||||
if ( config.canCoAuthoring && config.canComments ) {
|
if ( config.canCoAuthoring && config.canComments ) {
|
||||||
this.btnsComment = Common.Utils.injectButtons(this.toolbar.$el.find('.slot-comment'), 'tlbtn-addcomment-', 'toolbar__icon btn-menu-comments', this.toolbar.capBtnComment,
|
this.btnsComment = Common.Utils.injectButtons(this.toolbar.$el.find('.slot-comment'), 'tlbtn-addcomment-', 'toolbar__icon btn-menu-comments', this.toolbar.capBtnComment,
|
||||||
[ Common.enumLock.paragraphLock, Common.enumLock.headerLock, Common.enumLock.richEditLock, Common.enumLock.plainEditLock, Common.enumLock.richDelLock, Common.enumLock.plainDelLock,
|
[ Common.enumLock.paragraphLock, Common.enumLock.headerLock, Common.enumLock.richEditLock, Common.enumLock.plainEditLock, Common.enumLock.richDelLock, Common.enumLock.plainDelLock,
|
||||||
Common.enumLock.cantAddQuotedComment, Common.enumLock.imageLock, Common.enumLock.inSpecificForm, Common.enumLock.inImage, Common.enumLock.lostConnect, Common.enumLock.disableOnStart],
|
Common.enumLock.cantAddQuotedComment, Common.enumLock.imageLock, Common.enumLock.inSpecificForm, Common.enumLock.inImage, Common.enumLock.lostConnect, Common.enumLock.disableOnStart,
|
||||||
|
Common.enumLock.previewReviewMode, Common.enumLock.viewFormMode ],
|
||||||
undefined, undefined, undefined, '1', 'bottom');
|
undefined, undefined, undefined, '1', 'bottom');
|
||||||
if ( this.btnsComment.length ) {
|
if ( this.btnsComment.length ) {
|
||||||
var _comments = DE.getController('Common.Controllers.Comments').getView();
|
var _comments = DE.getController('Common.Controllers.Comments').getView();
|
||||||
|
@ -3227,6 +3228,7 @@ define([
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
Array.prototype.push.apply(this.toolbar.paragraphControls, this.btnsComment);
|
Array.prototype.push.apply(this.toolbar.paragraphControls, this.btnsComment);
|
||||||
|
Array.prototype.push.apply(this.toolbar.lockControls, this.btnsComment);
|
||||||
}
|
}
|
||||||
|
|
||||||
(new Promise(function(accept) {
|
(new Promise(function(accept) {
|
||||||
|
|
Loading…
Reference in a new issue