csharp: add mentions

This commit is contained in:
metoou
2021-05-13 13:04:53 +03:00
parent b6b980de92
commit 0392ffbc9a
3 changed files with 37 additions and 0 deletions

View File

@ -147,6 +147,19 @@
docEditor.setMailMergeRecipients(<%= dataMailMergeRecipients%>); // insert recipient data for mail merge into the file
};
var onRequestUsers = function () {
docEditor.setUsers({
"users": <%= users%>
});
}
var onRequestSendNotify = function (event) {
var actionLink = JSON.stringify(event.data.actionLink);
console.log("onRequestSendNotify:");
console.log(event.data);
console.log("Link to comment: " + replaceActionLink(location.href, actionLink));
};
var config = <%= DocConfig %>;
config.width = "100%";
@ -163,6 +176,8 @@
'onRequestInsertImage': onRequestInsertImage,
'onRequestCompareFile': onRequestCompareFile,
"onRequestMailMergeRecipients": onRequestMailMergeRecipients,
"onRequestUsers": onRequestUsers,
"onRequestSendNotify": onRequestSendNotify,
};
<% if (!string.IsNullOrEmpty(History) && !string.IsNullOrEmpty(HistoryData))