VolkovLabs / volkovlabs-dynamictext-panel

Business Text Panel for @grafana
https://docs.volkovlabs.io
Apache License 2.0
78 stars 14 forks source link

Onclick event not showed in HTML #190

Closed dmitryshendryk closed 1 year ago

dmitryshendryk commented 1 year ago

Hello Support Team. I use your plugin latest version: 4.0.0 Grafana Enterprise: 9.5.2

In plugin HTML when I add buttons with onclick handlers they don't show up in the browsers, elements. In this case Javascript not executed. If I manually add them in console, it works. Do you know the reason why it not shows up in HTML browser ?

Screenshot 2023-07-01 at 11 36 28
mikhail-vl commented 1 year ago

@dmitryshendryk Content is sanitized as described in the documentation: https://volkovlabs.io/plugins/volkovlabs-dynamictext-panel/content/#sanitizing

You need to disable sanitizing to allow fully functional button elements.

mikhail-vl commented 1 year ago

@dmitryshendryk Let me know if it helps.