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.
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:
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:
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.
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
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:
- How to add closed web parts on a page in SharePoint 2013?
- How to use Page viewer web part in SharePoint 2016/2013 or Online
- Quick Chart Web Part in Modern SharePoint Online Site
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.
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com