vuepress-plugin-mermaidjs icon indicating copy to clipboard operation
vuepress-plugin-mermaidjs copied to clipboard

Click events on graph elements are not working

Open spiess-demos opened this issue 5 years ago • 2 comments

Binding click events to nodes as described in the mermaidjs docs seems to be either broken or not implemented. As this requires securityLevel at least to be set to loose, i registered the plugin in config.js with:

plugins: [
   [
     'mermaidjs',
     {
       securityLevel: 'loose'
     }
   ]
]

Anyway the click events are not triggered.

spiess-demos avatar Dec 07 '20 10:12 spiess-demos

Okay, I looked into this. It seems like the event handlers are lost after rendering the SVG. I'm on it.

eFrane avatar Dec 07 '20 19:12 eFrane

hi @eFrane ,

sorry for pinging you. Did you find anything? I just started to use your beautiful integration today and when I add click like:

click consents href "http://www.github.com" "This is a tooltip for a link"

Then in my console there is an error, and chart is not rendered image

Let me know if I can help with that.

@spiess-demos did you find a way to add clicks?

PavelPolyakov avatar Mar 19 '21 21:03 PavelPolyakov