AddComment

AddComment(oCommentData) → { string | null }

Adds a comment to the presentation.

Parameters:

Name Type Description
oCommentData CommentData

An object which contains the comment data.

Returns:

Type
string | null

Example

Copy code
window.Asc.plugin.executeMethod ("AddComment", [
    {
        "UserName": "John Smith",
        "QuoteText": "text",
        "Text": "comment",
        "Time": "1662737941471",
        "Solved": true,
        "Replies": [
            {
                "UserName": "Mark Potato",
                "Text": "reply 1",
                "Time": "1662740895892",
                "Solved": false
            }
        ]
    }
], function (comment) {
    console.log (comment)
});