Totara Learn Open Discussions

Adding JavaScript to HTML Blocks

 
Nicole Ball
Adding JavaScript to HTML Blocks
door Nicole Ball - Thursday, 12 September 2024, 14:53 PM
 

I need to add some JavaScript to an HTML block for a Totara dashboard. Is this possible?

Thanks!

Craig Eves
Re: Adding JavaScript to HTML Blocks
door Craig Eves (Totara Support) - Thursday, 12 September 2024, 19:27 PM
Groep Totara

Hi Nicolas

The embedding of advanced HTML is a security risk and will by default be filtered out using HTML purifier .

Although we don't recommend this there are some settings that would allow some advanced HTML content see https://totara.atlassian.net/wiki/spaces/DEV/pages/121185890/Totara+13+changes+to+content+sanitisation for details

regards