Skip to content
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 the ability to set the target for links in the SVG file. #283

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

qtzar
Copy link
Contributor

@qtzar qtzar commented Aug 10, 2023

By default the PlantUML export to SVG set all links with target="_top" which is causing havoc when you want to embed the generated site in an iFrame.

This PR adds a new option to the View Properties called generatr.svglink.target that will allow you to override this default with something like _self or any other string. Custom strings are allowed because iFrames can be permitted to have an id which a link target can reference.

If the new property is not set then the current default behavior of _top is maintained.

@dirkgroot
Copy link
Collaborator

Hi @qtzar, thanks for your PR. I'm surprised that the PlantUML export uses _top as a default instead of _self (which is the HTML default).

@dirkgroot dirkgroot merged commit e0e6f3b into avisi-cloud:main Aug 11, 2023
@qtzar qtzar deleted the iFrameSupport branch August 11, 2023 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants