- Issue created by @will_frank
- Status changed to Postponed: needs info
about 1 year ago 9:40am 25 September 2023 - 🇨🇦Canada star-szr
Hi there, please test the behaviour without filtering enabled. What do the footnotes look like in that case?
Also, can you give an example of what happens to the actual footnotes at the end of the document? I think the markup examples only show the link to the footnote.
- 🇺🇸United States will_frank
Hi @star-szr,
Thanks for the quick response!
I tested with the "Filter Pasted Content" unchecked.
The result was the same during pasting. I.e. the footnote number 1 was
removed from the a href tag. Note that if I then typed it back in while the
editor was in source mode and toggled back and forth in and out of source
mode the footnote number stays. The same when I save a draft of the article.
So the problem is only during the paste operation.As for the actual footnotes at the end, for our purposes we aren't worried about
them. This whole initial pasting of an article for us is just so our content editors
can create footnotes a different way that we have created. I won't bore you with
the details except to say that our footnotes work across multiple paragraph articles.f
So if we could get your module to preserve that footnote number inside the a href tag
that would be great for us. - 🇨🇦Canada star-szr
If the footnote linking to 2 has a href attribute of “sdendnote2sym” and so on, then it should be possible with a filter to add back the missing number.
If not, it may not be feasible since based on your description Word is actually removing the numbers. When “Filter Pasted Content” is unchecked this module isn’t doing anything to the pasted content.
Untested, but you can try something like the following.
Search expression:
<a href="#sdendnote([0-9]+)sym"> <\/a>
Replacement:
<a href="#sdendnote$1sym">$1</a>
- Status changed to Fixed
12 months ago 7:46pm 29 November 2023 - 🇨🇦Canada star-szr
Marking as fixed as I believe I have addressed the support request and there have been no further questions or follow-up. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
5 months ago 9:19pm 1 July 2024