mgeb / mediawiki-drawio-editor

MediaWiki extension that integrates the draw.io flow chart editor.
MIT License
20 stars 21 forks source link

Option: Interactive; Hyperlinks not working in Diagrams #31

Open Davo00 opened 3 years ago

Davo00 commented 3 years ago

The generated SVG includes with correct links, but it's not clickable and the links don't work. What should I provide for further investifgation of the problem.

z3rone commented 3 years ago

I have the same problem. Investigating the generated SVG I discovered errors regarding the foreign object tags. All tags within a forignObject tag should be prefixed with xhtml:. Furthermore, the xmlns:xhtml="http://www.w3.org/1999/xhtml" attribute should be set in the <svg>-tag. Read https://stackoverflow.com/questions/45518545/svg-foreignobject-not-showing-on-any-browser-why for further information.

Screenshots before fix: image with fix applied: image

Davo00 commented 3 years ago

Thank you for your quick and helpful response, Mate

In my case adding xmlns:xlink="http://www.w3.org/1999/xlink" was helpfull for linking. Is there any way to add your suggestions and the link snippet automatically to each interactive svg?

I'm pretty sure the users wouldn't like the idea of doing it manually and uploading svg some way