-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Header bookmarks #460
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
![image](https://private-user-images.githubusercontent.com/122788350/340113705-eb4a920e-0740-48fd-a828-2820560c310f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2NDQ4MTcsIm5iZiI6MTcyMDY0NDUxNywicGF0aCI6Ii8xMjI3ODgzNTAvMzQwMTEzNzA1LWViNGE5MjBlLTA3NDAtNDhmZC1hODI4LTI4MjA1NjBjMzEwZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMFQyMDQ4MzdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NmM1MjNkN2Q5MDJiNjUwZmI0ODkwYTA2OTg3ZjJiNGM5NTFkNGFiZjBlODIwYWUxYzY2YmM4OTAwM2NiNDdmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.pmZ9CiZQO3c4CGrkHy6HsgV8gOHnkoZr0adn3PQ8AoU)
When adding a link in the tinymce editor you can make it an internal link to a heading ->
(Entering in
#
makes it an internal hyperlink)The tinymce editor then adds an
id
attribute to the heading tag, e.g.This id tag is currently stripped and does not end up as a bookmark in the generated docx
Describe the solution you'd like
![image](https://private-user-images.githubusercontent.com/122788350/340114164-ffcffc2f-0a1e-47a4-a262-2d152b4656e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2NDQ4MTcsIm5iZiI6MTcyMDY0NDUxNywicGF0aCI6Ii8xMjI3ODgzNTAvMzQwMTE0MTY0LWZmY2ZmYzJmLTBhMWUtNDdhNC1hMjYyLTJkMTUyYjQ2NTZlNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMFQyMDQ4MzdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wN2JmZWZlMmQ0ODhkMDM5NWMwMzljNjg0NWEwZmM2NWRhOTk2Y2NmOTlmMmY5ZmY5MzIwOWU5NmFkZmI4MjNlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.bOsMt2zXrdhukWmMrq6N82IFN-sYZXoFKBZVsSgFHMI)
The hyperlink currently gets generated correctly
But the bookmark does not
![image](https://private-user-images.githubusercontent.com/122788350/340114205-51495952-eca8-408e-903b-bc7386bdeecc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2NDQ4MTcsIm5iZiI6MTcyMDY0NDUxNywicGF0aCI6Ii8xMjI3ODgzNTAvMzQwMTE0MjA1LTUxNDk1OTUyLWVjYTgtNDA4ZS05MDNiLWJjNzM4NmJkZWVjYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMFQyMDQ4MzdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mYmYwOGU1Y2VlODcyY2RjMWQzZjRlZWUxZDQ5Njk2ZmU5MmZhMWJlODU5Zjk0MjFlNmUyMDdmMTBkMjY1OTM0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.utVBYxhgplRTuwf6z-AGD6IRrw07D16kt-DyErOfOow)
It would be good if bookmarks could be added into the renderer
Describe alternatives you've considered
I had considered adding in a
title_bookmark
field to each finding by adding in the function which only adds in the rich textThe text was updated successfully, but these errors were encountered: