跳到主要内容

onChangeCommentData

使用 ChangeComment 方法更改指定评论时调用的函数。

参数

名称数据类型描述
commentEvent_comment定义包含批注数据的批注对象。
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);
});