Enabling css and Javascript in Text Panel

Hey, I have been able to write html with no problems in grafana text panel but struggling to get the style sheets to work (whilst accessing an external style sheet not local to the grafana hosting site), or even js. But I have read I will need to disable html sanitizer for js to work accordingly?
Can someone please give me some advice.