1
Adding Javascript to SmarterTrack KB articles?
Question asked by Nathalie V - 2/23/2016 at 11:37 AM
Answered
How does one add javascript into a KB article that needs to inject video?
 
For example, we want to embed videos from a service we subscribe to, and needt to be able to add something like this (on top of the actual code we would paste as the source in the KB itself for the video)
 
<script type="text/javascript" src="domain.com/location/jquery.colorbox.js"></script>
 
 
I believe this would need to be done in a master page/template somewhere, so I'm asking where we should do this, and if this change would get overwritten when we update Smartertrack?
 
Thanks
 

1 Reply

Reply to Thread
1
Employee Replied
Employee Post Marked As Answer
Hello Nathalie,
 
We currently do not support injecting javascript into kb articles as doing so can be a security risk. As an alternative the editor has a option to embed videos from common sources that may work. Or you can see if your video provider supports embedding the video through an iframe or a video tag.
 
Regards,

Reply to Thread