Enable script editor web part in SharePoint Online Office 365

In this SharePoint tutorial, we will discuss how to enable script editor web part in SharePoint Online Office 365. The same way we can enable content editor web part in SharePoint Online Office 365.

The content editor and Script editor web part were missing in SharePoint Online Office 365 sites. Here we will discuss, how we can enable custom script at Office 365 tenant level for SharePoint Online sites.

Enable script editor web part in SharePoint Online Office 365

Recently one of my teammates faced one issue in Office 365 SharePoint online site. She recently signed up or an Office 365 SharePoint Online trial. Then she created a SharePoint Online team site, but when she edited the web part page and try to add a script editor or content editor web part, she was not able to see all the web parts in the Ribbon (Insert -> Web Part -> Categories).

The script editor web part and content editor web part were missing in SharePoint Online site, See fig below:

Script Editor web part missing in SharePoint Online
Script Editor web part missing in SharePoint Online

Microsoft recently did one update, according to which the scripting capabilities are disabled by default for personal sites and self-service created sites in SharePoint Online Office 365. This behavior is intended to reduce the security risk of allowing users to insert custom scripts into SharePoint Online sites.

By default, in Office 365 SharePoint Online, custom scripts are disabled in Office 365 SharePoint Online. But we can enable custom script in Office 365 tenant level.

Login to your Office 365 Portal. Then Go to the SharePoint Admin Center.

Then go to Settings. If you can not see the Settings link then write Settings in the search box and click on Enter. In the search result click on the desired Settings link like below:

Content Editor web part missing in SharePoint Online
Script Editor web part missing in SharePoint Online

Then in the Settings page, go to the Custom Script section. By default, “Prevent users from running custom script on personal sites” and “Prevent users from running custom script on self-service created sites” will be selected.

Script editor and Content editor web part missing office 365
Script Editor web part missing in SharePoint Online

Now select the radios button “Allow users to run custom script on personal sites” and “Allow users to run custom script on self-service created sites“. See fig below

SharePoint Online Script Editor web part missing
SharePoint Online Office 365 script editor and content editor web part missing

Now click on OK. Once you save the page it may take up to 24 hours to reflect the changes.

Once it is reflected, you can edit a web part page in SharePoint Online and click on Add a web part, and you can see script editor and content editor web parts will be available in SharePoint Online Office365.

You may like following SharePoint web part tutorials:

According to Office blog, when scripting is disabled then lots of web parts and features will not be available in SharePoint Online Office 365.

In this tutorial, we learned how to enable script editor web part in SharePoint Office 365. The steps we can follow to enable content editor web part in SharePoint Online Office 365.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

  • Hello,

    It is enabled since long.. But couldnt find content editor or script webparts. Could you please guide.

  • >