Fix Missing SharePoint JS Link and Content Editor Options
Question details
The user needs to restore the missing JS Link and Content Editor Web Part options in SharePoint Online.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Attempting to customize classic SharePoint pages using JS Link or Content Editor web parts, but the options are missing from the interface.
- Observed behavior
- The JS Link and Content Editor options do not appear, typically resulting from restrictive custom-script policies or an outdated SharePoint Online Management Shell.
Verify that you have SharePoint Administrator privileges for your tenant and that your computer's Windows operating system is fully updated before attempting to modify script policies.
Update Management Shell and Enable Custom Scripts
Reinstall the SharePoint Online Management Shell and run the required PowerShell commands to allow custom scripts on your tenant.
SharePoint Online restricts custom scripts by default for security. Updating your Management Shell ensures the commands run properly without unexpected policy errors.
Navigate to the official Microsoft Download Center and download the most recent version of the SharePoint Online Management Shell.
Run the installer on a clean, fully updated Windows computer to ensure PowerShell dependencies function correctly.
Open PowerShell as Administrator and run the command 'Connect-SPOService -Url https://[yourtenant]-admin.sharepoint.com', entering your admin credentials.
Execute 'Set-SPOSite -Identity https://[yourtenant].sharepoint.com -DenyAddAndCustomizePages 0' to restore the JS Link and Content Editor options.

Enable Custom Scripts via SharePoint Admin Center
Change the global custom script settings directly through the SharePoint Admin Center interface.
Looking for a Lightweight Document Solution?
While SharePoint requires complex PowerShell configurations for simple customizations, WPS Office offers a straightforward, free, and lightweight alternative for your daily document creation and collaboration needs. Enjoy a familiar interface with seamless Microsoft Office compatibility.
- 1. Download the Installer: Visit the official WPS website and click the free download button for your operating system.
- 2. Install and Launch: Run the downloaded file and follow the quick installation wizard, then open WPS Office to start working immediately.

Frequently Asked Questions
Why did the JS Link and Content Editor options suddenly disappear?
Microsoft periodically updates SharePoint Online service policies, often disabling custom scripts by default for security reasons. This automatically hides web parts like JS Link and Content Editor.
How long does it take for custom script changes to take effect?
When modifying custom script settings through the SharePoint Admin Center interface, it can take up to 24 hours for the changes to propagate. Using PowerShell commands generally applies the changes to a specific site immediately.
Can I use JS Link in modern SharePoint pages?
No, JS Link and the Content Editor Web Part are only supported in classic SharePoint experiences. For modern pages, Microsoft recommends using SharePoint Framework (SPFx) web parts and extensions.




