Totara Learn Open Discussions

Adding JavaScript to HTML Blocks

 
BallNicole
Adding JavaScript to HTML Blocks
BallNicole 发表于 2024年09月12日 Thursday 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
Eves (Totara Support)Craig 发表于 2024年09月12日 Thursday 19:27
小组 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