-
Notifications
You must be signed in to change notification settings - Fork 326
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
Add anchor-field to MediaLinkTypeOverlay #7231
Conversation
Would be great to see this merged! |
b564ebf
to
b3b8475
Compare
As discussed in #7082 at least for PDF-media an URL fragment can be very useful (to jump to a specific page with `#page=12`). This PR adds that field (as a copy from the internal link overlay).
Just a little test for the new anchor field.
to match linting rules
to match linting rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the linting errors.
to match linting rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added trailing comma to match more linting rules.
Thx, I will update the snapshot tests, mostly a little bit tricky if your system may run on none english system. |
@spackmat Thank you! |
What's in this PR?
This PR adds an anchor field to the MediaLinkTypeOverlay (as a copy from the internal link overlay, that already has one).
Why?
As discussed in #7082 at least for PDF-media an URL fragment can be very useful (to jump to a specific page with
#page=12
).Example Usage
Links to a media files (mainly PDF files) can now get an anchor like
page=12
within the overlay form (just like links to pages) that is appended to the link's URL like...longdocument.pdf#page=12
.I didn't find any documentation for the link overlays, so there is no documentation PR,
To Do
Nothing from my point of view. Update: Added a test to cover that field.