Insert an endnote: its reference at the caret and its body in the endnote list, created at the very end of the document the first time. It mirrors insertFootnote; the two lists keep that order, footnotes first.
Optional
Insert an endnote: its reference at the caret and its body in the endnote list, created at the very end of the document the first time. It mirrors insertFootnote; the two lists keep that order, footnotes first.