Get Started
Plugins
Macros
More information

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

Description

Defines the method that allows changing the specified comment.

Usage

This method should be used in the following way:

window.Asc.plugin.executeMethod ("ChangeComment", [sId, oCommentData]);
Parameters
Parameter Description Type Example
sId The comment id. string "id"
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 undefined value.

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