nodejs: new comments

This commit is contained in:
Natalia
2021-08-26 13:32:59 +03:00
parent 873a9a386b
commit 75f4e80b54
8 changed files with 128 additions and 79 deletions

View File

@ -132,13 +132,13 @@
docEditor.setMailMergeRecipients(<%- JSON.stringify(dataMailMergeRecipients) %>); // insert recipient data for mail merge into the file
};
var onRequestUsers = function () {
docEditor.setUsers({
var onRequestUsers = function () { // add mentions for not anonymous users
docEditor.setUsers({ // set a list of users to mention in the comments
"users": <%- JSON.stringify(usersForMentions) %>
});
};
var onRequestSendNotify = function(event) {
var onRequestSendNotify = function(event) { // the user is mentioned in a comment
var actionLink = JSON.stringify(event.data.actionLink);
console.log("onRequestSendNotify:");
console.log(event.data);