跳到主要内容

添加批注回调

当使用添加批注方法向文档添加批注时调用的函数。

参数

名称数据类型说明
comment事件_批注包含批注数据的批注对象。
window.Asc.plugin.attachEditorEvent("onAddComment", (comment) => {
Comments.push(comment);
$('#scrollable-container-id').append(makeComment(comment.Id, comment));
});