Totara Learn Open Discussions

Adding JavaScript to HTML Blocks

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

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
de Craig Eves (Totara Support) - Thursday, 12 de September de 2024, 19:27
Grupo 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