Closed trafficonese closed 10 months ago
This https://github.com/visjs/vis-timeline/issues/846 seems to be the issue..
downgrading to v1.0.0 seems to work.
The template function looks like this with 1.0.0:
function(item)
and the newer timevis
versions:
function(item, element, data)
Thanks for taking the time to trackd down the cause - you probably saved me an hour of my time. Unfortunately that "security fix" in vis-timeline a few years ago caused several issues, like this one https://github.com/daattali/timevis/issues/118
You're right that you can use v1 of the package if you want the older vis-timeline. I was also annoyed by the fact that upgrading caused a few new bugs, and for a while I considered trying to support different version of vis-timeline simultaneously, but I eventually decided against it as it would be a maintenance nightmare. Unfortunately you have to either use an old version that doesn't have all the newest features, or you have to use the newer version that has a few regression bugs.
I'm closing this issue as it seems you know what to do.
In the content I would like to place a bigger table with some custom styling and custom classes. But somehow it always filters out HTML attributes:
Here is an example. The CSS classes for the
table
,tr
andtd
are not respected.