Метод Position:insertFootnote
Метод вставляет сноску в текущую позицию.
Вызов
Position insertFootnote()
Возвращает
- позиция содержимого сноски, тип Position.
Пример
local range = document:getRange()
local sentence = range:getBegin():getCurrentRange(DocumentAPI.TextUnit_Sentence)
local pos = sentence:getContentEnd():insertFootnote()
pos:insertText("Footnote")