Newer
Older
import CommentBubbleComponent from './components/ui/comments/CommentBubbleComponent';
import RightArea from './components/RightArea';
import CommentPlugin from './plugins/CommentPlugin';
import CopyPasteCommentPlugin from './plugins/CopyPasteCommentPlugin';
const commentsConfig = this.app.config.get('config.CommentsService');
this.app.PmPlugins.add(
'commentPlugin',
CommentPlugin('commentPlugin', this.app.context),
);
this.app.PmPlugins.add(
'copyPasteCommentPlugin',
CopyPasteCommentPlugin('copyPasteCommentPlugin', this.app.context),
);
this.allCommentsFromStates = this.allCommentsFromStates.filter(
comm =>
(items.find(item => item.id === comm.id) || {}).id !== comm.id,
);
this.allCommentsFromStates = this.allCommentsFromStates.concat([
...items,
]);
commentsConfig.getComments(this.allCommentsFromStates);
this.app.context.setOption({ comments: this.allCommentsFromStates });
};
this.app.PmPlugins.add(
'AnnotationPlugin',
AnnotationPlugin('AnnotationPlugin', options),
);
const createOverlay = this.container.get('CreateOverlay');
const layout = this.container.get('Layout');
const commentConfig = this.config.get('config.CommentsService');
comment: commentMark(commentConfig?.showTitle || false),