I have an HTML file with javascript and CSS inside, and I want to link all of the web parts on my web part page to that HTML file so that they are all affected by it. How do I do this? I see people suggest a content link through a content editor, but you can't add web parts to a content editor so I don't see how that is useful.
EDIT:
- I have a web part page.
- There are web parts in the web part page.
- I want to refer these web parts to some javascript and css that I have in a local HTML file.
- I can upload the HTML file to my Sharepoint website if necessary.
- I can not use a script editor to achieve what I want because google chrome throws an XSS auditor error whenever any javascript is added to a page through a script editor. The error is thrown when the script editor contains any javascript and I try to edit the page.
- I see people suggesting content editors and using the content link property of the content editors to link to the HTML file (I've seen it in other similar questions), but you cannot add web parts to a content editor so I do not see how it applies.