Skip to main content

onChangeCommentData

The function called when the specified comment is changed with the ChangeComment method.

Parameters

NameData typeDescription
commentEvent_commentDefines the comment object containing the comment data.
window.Asc.plugin.attachEditorEvent("onChangeCommentData", (comment) => {
console.log("event: onChangeCommentData");
console.log("Id: " + comment.Id);
console.log("UserName: " + comment.Data.UserName);
console.log("Text: " + comment.Data.Text);
console.log("Time: " + comment.Data.Time);
console.log("Solved: " + comment.Data.Solved);
console.log("QuoteText: " + comment.Data.QuoteText);
});