The way I understand the inner workings of PM, there is no way to check whether new footnote elements (or other elements) have been added or whether some have been deleted. At the change event, one simply has to walk through all nodes in editor.doc and see whether the list of footnote elements there still is the same as it was last time. If it’s not, one has to re-layout the footnotes. Correct?
So because one cannot find out if there are new ones created, one cannot put a markRange around them either, right?
But maybe it would work for the second part, when trying to find the footnote marker for a given footnote whose contents have just changed – put markranges around each footnote once it has been found, and then use that information when the footnote is updated. Is that how it should be done?