addComment abstract method

bool addComment(
  1. String nodeId,
  2. int startOffset,
  3. int endOffset,
  4. String author,
  5. String text,
)

Adds a new comment anchored to nodeId from startOffset to endOffset. Returns true if the comment was added, false if it overlaps an existing comment on the same node (in which case the caller should show a warning).

Implementation

bool addComment(String nodeId, int startOffset, int endOffset, String author, String text);