logo
search
SharePoint Document Issues

Fix Missing SharePoint JS Link and Content Editor Options

Emma BrownEmma Brown Oct 1, 2026 869 views

Question details

The user needs to restore the missing JS Link and Content Editor Web Part options in SharePoint Online.

How to Fix Missing JS Link and Content Editor Options in SharePoint
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.
Before you start

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.

Solution 1Recommended

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.

1
Download the Latest Shell

Navigate to the official Microsoft Download Center and download the most recent version of the SharePoint Online Management Shell.

2
Install on an Updated PC

Run the installer on a clean, fully updated Windows computer to ensure PowerShell dependencies function correctly.

3
Connect to SharePoint Online

Open PowerShell as Administrator and run the command 'Connect-SPOService -Url https://[yourtenant]-admin.sharepoint.com', entering your admin credentials.

4
Enable Custom Scripts

Execute 'Set-SPOSite -Identity https://[yourtenant].sharepoint.com -DenyAddAndCustomizePages 0' to restore the JS Link and Content Editor options.

Update Management Shell and Enable Custom Scripts
Policy Changes: Microsoft service changes may reset these custom-script behaviors in the future. Keep an eye on the Microsoft 365 Message Center for policy updates.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS website and click the free download button for your operating system.
  2. 2. Install and Launch: Run the downloaded file and follow the quick installation wizard, then open WPS Office to start working immediately.
100% compatibility with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Free, lightweight suite that installs quickly and runs smoothly on all devices.Built-in cloud collaboration features to easily share and co-edit documents without complex server settings.
microsoft office alternative - wps office

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.