Skip to main content

onAddComment

The function called when a comment is added to the document with the AddComment method.

Parameters

NameData typeDescription
commentEvent_commentDefines the comment object containing the comment data.
window.Asc.plugin.attachEditorEvent("onAddComment", (comment) => {
Comments.push(comment);
$('#scrollable-container-id').append(makeComment(comment.Id, comment));
});