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:
-
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.
-
The Markdown web part allows you to add text to your page and format it using Markdown language.
-
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.
-
The Button web part easily adds a button to your page with your own label and link.
-
The Call to Action web part creates a button with a call to action for users.
-
The Weather web part shows the current weather on your page.
-
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:
-
For more information on classic and modern web parts, see Classic and modern web part experiences.
-
For a list of all modern web parts, see Using web parts on SharePoint pages.
-
Modern pages can only use modern web parts and classic pages can only use classic web parts. The exceptions are custom web parts that are specifically designed to be used on modern pages. For developers, the SharePoint Framework allows for the building of custom modern web parts that show up right in the web part toolbox. Developers can also find guidance and tools at Modernize your classic SharePoint sites.