Where are the Content editor and Script editor web parts in SharePoint?

Where are the Content editor and Script editor web parts in SharePoint?

Two web parts that are not available in SharePoint for Microsoft 365 modern pages are the Script editor web part and the Content editor web part. However, there are modern out-of-the-box web parts that can fulfill some of the same purposes. Or, you can create custom web parts or migrate your existing script editor web parts to the SharePoint Framework.

Out-of-the-box web parts can handle many scenarios that the Script editor and Content editor web parts were used for without the need for code. Additionally, the new web parts make IT admin governance and control simpler.

Some of them are:

  • Embed web part

    With the Embed web part, you can display content on your page from sites that allow embedding (like YouTube, for example). Depending on the website from which you are embedding, you can either use the site's web address or embed code that the site provides.

  • Markdown web part

    The Markdown web part allows you to add text to your page and format it using Markdown language.

  • Text web part

    The Text web part allows you to easily add and format text and tables on a page. It has a formatting toolbar where you can format text, change styles, and more. Unlike the content editor web part, though, you cannot edit HTML within the web part. Nested tables are not yet supported. It is not yet possible to add images inline within the Text web part, but you can add images alongside the text web part by using the Image web part.

  • Button web part

    The Button web part easily adds a button to your page with your own label and link. 

  • Call to action web part

    The Call to Action web part creates a button with a call to action for users. 

  • Weather web part

    The Weather web part shows the current weather on your page. 

  • World clock web part

    The World clock web part shows the time in different locations around the world. 

New web parts are being added all of the time, so check back often for additional web parts.

Custom web parts

If you can't find an out-of-box web part that works for the scenario you need, consider migrating your existing Script Editor web parts or creating new custom web parts using the SharePoint Framework (SPFx)

You may even find web part solutions that exists in PNP samples or community created solutions

Notes: 

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×