Forum Discussion
Open HTML files in browser - SharePoint Online
Hello Melissa Klug,
I know this thread is a little bit older, but I stumbled over this while looking for a solution for the same issue. With several try and errors, I finally got a solution that might help you.
What you will need, is a tenant admin and a bit of PowerShell code. So let me describe the few steps necessary:
1) Login to your SharePoint Tenant via SharePoint Online Management Shell with
Connect-SPOService
2) Execute
Set-SPOSite -Identity https://[yourtenant].sharepoint.com/[siteurl] -DenyAddAndCustomizePages 0
After this execution, you will get the Content Editor WebPart available in the WebPart Section and you will be able to include your HTML page inside a Default aspx page of SharePoint.
While I was still experiencing the Problem, that I cannot navigate to a html page inside a library, I was able to create a folder on the root of the site when connecting via SharePoint Designer. After placing a html file here, I was able to navigate to it. Since I did some try and error in advance, you may need to enable the publishing feature too, but I cannot tell if this is really necessary.
Cheers, Tim
-- Updated... now with Format