When changing the selection of Annotations.TextHighlightAnnotation in the UI, the comment (content) of the annotation gets also updated with the new text auf the selection. It is not possible to see this in the samples, because the "refreshAnnotationList" is not refreshing the list correctly. Fixed the refreshing with:
if (action === "modify") {
var annotation = annotations[0];
me.refreshAnnotationItem(annotation, me.$annotList.find('[data-id=' + annotation.Id + ']'));
}
I can not find the code where the content gets updated, so I think it will be in the minified code.