onAddComment
The function called when a comment is added to the document with the AddComment method.
Parameters
Name | Data type | Description |
---|---|---|
comment | comment | Defines the comment object containing the comment data. |
window.Asc.plugin.attachEditorEvent("onAddComment", (comment) => {
Comments.push(comment);
$('#scrollable-container-id').append(makeComment(comment.Id, comment));
});