How to Fix Missing Content Editor Web Part in SharePoint Online
Question details
The Content Editor Web Part is missing or uneditable in SharePoint Online due to restricted custom script or site-level permissions.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Administrators or site owners are trying to add or modify a Content Editor Web Part on their SharePoint pages, but the web part is entirely missing from the gallery or existing ones are locked.
- Observed behavior
- The Content Editor Web Part disappears from SharePoint Online, existing web parts become uneditable, and users may encounter a permissions error even when 'Add and Customize Pages' permissions are seemingly applied.
Ensure you have SharePoint Administrator or Global Administrator privileges in Microsoft 365, as modifying custom script settings requires high-level tenant access.
Verify and Enable Custom Script Settings for the Affected Site
The most common reason for a missing Content Editor Web Part is that custom script capabilities have been restricted at the specific site level.
SharePoint Online often blocks custom scripts by default to enhance security. When custom scripts are blocked, script-based web parts like the Content Editor and Script Editor are automatically hidden from the web part gallery and become uneditable.
Log in to the Microsoft 365 admin portal and navigate to the SharePoint admin center.
In the left-hand navigation pane, expand 'Sites' and click on 'Active sites'. Search for and select the specific site collection where the web part is missing.
With the site selected, click on the 'Settings' tab in the property panel that appears on the right side of your screen.
Look for the custom script setting. If it is restricted or disabled, change it to allow users to run custom scripts.
Save your changes. Note that it can take up to 24 hours for custom script changes to fully propagate across the SharePoint Online site.

Address Tenant-Level Restrictions and Permission Errors
If custom script is already enabled but the issue suddenly affects all site collections, there may be a tenant-wide anomaly requiring escalation.
Looking for a Lightweight Document Solution? Try WPS Office
While troubleshooting complex SharePoint web part and tenant permission issues, you might find that straightforward document collaboration is often better. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office for creating, editing, and sharing your important files without the hassle of complex administrative settings.

Frequently Asked Questions
Why did the Content Editor Web Part disappear suddenly?
The Content Editor Web Part typically disappears when custom script capabilities are disabled at the site or tenant level. Microsoft sometimes updates security baselines, which can restrict users from adding or modifying scriptable web parts.
How long does it take for custom script changes to take effect in SharePoint Online?
Enabling or disabling custom scripts via the SharePoint admin center graphical interface can take up to 24 hours to fully apply across the site collection. Using PowerShell can often apply the changes more quickly.
Can I use the Content Editor Web Part on modern SharePoint pages?
No, the Content Editor Web Part is only available on classic SharePoint pages. For modern pages, you should use the Embed web part or deploy a Modern Script Editor web part built via the SharePoint Framework (SPFx).
What should I do if my permissions include 'Add and Customize Pages' but the web part is still uneditable?
If you have the correct administrative permissions and custom scripts are properly enabled tenant-wide but the issue persists, this indicates a backend synchronization error. You should collect the exact error messages and contact Microsoft Support to investigate your tenant.




