Get Started
Plugins
Macros
More information

window.Asc.plugin.executeMethod ("AddComment", [args], callback)

Description

Defines the method that allows adding a comment to the document.

Usage

This method should be used in the following way:

window.Asc.plugin.executeMethod ("AddComment", [oCommentData]);
Parameters
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
Returns

The method returns the comment id in the string format or null if the comment cannot be added.

Example
window.Asc.plugin.executeMethod ("AddComment", [{"comment": "comment", "author": "John Smith"}]);