SharePoint Modern Script Editor web part capabilities

Shailesh Jaiswal 81 Reputation points
2022-12-18T14:33:29.557+00:00

I am building intranet portal using SharePoint modern hub site. I will be using multiple built in web parts but at the same time I am planning to use multiple modern script editor web parts (https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor) on the multiple modern SharePoint sites ( either communication site or team site) to achieve functionality which is not available in built in web parts.

Could you please let me know if I can use HTML, CSS, JavaScript/jQuery, JSOM and any third party from end frameworks (for e.g. Bootstrap etc) together in a single modern script editor web part ? Also let me if there are any limitations of modern script editor web part?

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

Accepted answer
  1. Tong Zhang_MSFT 9,251 Reputation points
    2022-12-19T02:15:18.2+00:00

    Hi @Shailesh Jaiswal ,

    According to my research and testing, unfortunately, there is no official documentation pointing out the functional limitations of SharePoint Modern Script Editor Web Part.

    As far as I know, the Web Part is similar to the classic Script Editor Web Part and allows us to place arbitrary scripts or HTML on modern pages. Per my test, we can use HTML, CSS, JavaScript/jQuery, JSOM together in Modern Script Editor web part.

    Hope it can help you. Thanks for your understanding.


    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.



0 additional answers

Sort by: Most helpful

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.