Add a comment
A comment anchors to a range or a paragraph.doc.revisionAuthor.
Comment across paragraphs
Join two ranges withexpandTo. The comment opens in the first paragraph and closes in the last.
Comment on a tracked change
A deletion’s range holds its struck text, as in Word. Itstext is empty, but isEmpty is false.
Join it to the insertion that replaces it to comment on the whole change.
insertComment, font,
delete, getOoxml, getTrackedChanges and compareLocationWith. insertText at its
Start, a tracked Replace and insertParagraph("Before") go before the struck text.
Read comments
getComments() for the comments inside them.
Reply, resolve and delete
delete() also removes the replies and the anchors in the text.