window.Asc.plugin.executeMethod ("AddComment", [args], callback)
Defines the method that allows adding a comment to the document.
This method should be used in the following way:
window.Asc.plugin.executeMethod ("AddComment", [oCommentData]);
Parameter |
Description |
Type |
Example |
oCommentData |
An object which contains the comment data:
-
comment - the comment text,
type: string,
example: "comment";
-
author - the comment author,
type: string,
example: "John Smith";
|
object |
|
The method returns the comment ID in the string format or null if the comment cannot be added.
window.Asc.plugin.executeMethod ("AddComment", [{"comment": "comment", "author": "John Smith"}]);