Files permitted by SharePoint Online

DavidLeeJr 0 Reputation points
2023-07-19T21:23:36.28+00:00

Will SharePoint Online permit custom javascript and CSS? Also will it permit HTML with embedded .SVG files?

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-07-20T03:01:49.01+00:00

    Hi @DavidLeeJr

    As the script editor web part is not supported in modern SharePoint, We have SPFx based react script editor web part to add custom CSS or JavaScript to modern SharePoint Online pages. Here are the documents about not support in sharepoint modern page

    https://support.microsoft.com/en-au/office/sharepoint-classic-and-modern-experiences-5725c103-505d-4a6e-9350-300d3ec7d73f

    https://learn.microsoft.com/en-us/sharepoint/modernize-classic-team-site

    Since there is no script editor web part in sharepoint modern page. We can create a custom spfx web part to deploy javascript and CSS. Please refer to the nice article to build your spfx webpart

    https://www.sharepointdiary.com/2020/11/add-custom-css-to-sharepoint-online-modern-page.html

    For more details about spfx please refer to the document

    https://learn.microsoft.com/en-us/sharepoint/dev/spfx/sharepoint-framework-overview


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.