I'm trying to add a link with an onclick event to a data record. Unfortunately, the onclick event is always automatically removed. Is this a bug or is it intentional?
My sincerest apologies, I recall writing the reply here and sending it, but it seems some error happened from my end, so the ticket got flagged as replied, but it was not correctly saved.
I will double-check if the replies are sent from now on, once again my sincere apologies for this, it will not happen again.
Im regards to the issue, I was able to reproduce what you described, as you wrote, if we try to insert the "onclick" event as part of a String cell, our Plugin is 'cleaning'/removing that part from the cell.
It seems it saves it, but when I go back in to edit the cell, it gets removed.
I will check with our developers if this is intended to be 'cleaned' like that, perhaps as a security measure.
As soon as they advise, we will report back right away.
Hello,
I'm trying to add a link with an onclick event to a data record. Unfortunately, the onclick event is always automatically removed. Is this a bug or is it intentional?
Excample:
<a href="/redirect.php?aid=9" onclick="copyClipBoard(event)" rel="noreferrer noopener nofollow sponsored" target="_blank" clipboard-data="xyz" title="Info">xyz</a>
Kind Regards
Jens
Hello,
no response for a week?
Did you overlook the ticket?
Kind regards
Jens
Hi Jens,
My sincerest apologies, I recall writing the reply here and sending it, but it seems some error happened from my end, so the ticket got flagged as replied, but it was not correctly saved.
I will double-check if the replies are sent from now on, once again my sincere apologies for this, it will not happen again.
Im regards to the issue, I was able to reproduce what you described, as you wrote, if we try to insert the "onclick" event as part of a String cell, our Plugin is 'cleaning'/removing that part from the cell.
It seems it saves it, but when I go back in to edit the cell, it gets removed.
I will check with our developers if this is intended to be 'cleaned' like that, perhaps as a security measure.
As soon as they advise, we will report back right away.
Thank you for your patience.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Jens,
We have an update and explanation from the developers.
Yes, this is added due to security vulnerability prevention, to basically prevent specific scripts through the table cell directly, etc;
but our developers advised what you can try as an alternative approach to achieve the same goal.
For example, in the String cell you can try something like:
And in the Main Plugin settings/Custom JS and CSS/Custom JS, you can insert something like :
I hope that helps as a different way to achieve your goal.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables