logo
search
SharePoint Document Issues

How to Restore JSLink and Content Editor Web Part Options in SharePoint

Elise WilliamsElise Williams Sep 28, 2026 869 views

Question details

The user needs to restore the missing JSLink and Content Editor Web Part options within a SharePoint Online site.

How to Restore JSLink and Content Editor Web Part Options in SharePoint
Product
Microsoft SharePoint Online
Device & OS
not provided
Scenario
Attempting to customize a SharePoint site using JSLink or Content Editor Web Parts, but finding the options are completely missing from the interface.
Observed behavior
The JSLink and Content Editor Web Part options are hidden or unavailable because custom scripting has been disabled by tenant policies or updated SharePoint security controls.
Before you start

Ensure you have SharePoint Online Administrator privileges and that the SharePoint Online Management Shell is installed on your computer before executing PowerShell commands.

Solution 1Recommended

Enable Custom Scripts via SharePoint Online Management Shell

Use PowerShell to bypass tenant restrictions and allow custom scripts on your specific site, which successfully restores the JSLink and Content Editor features.

By default, modern SharePoint Online sites and tenant security controls disable custom scripting to prevent unauthorized code execution. You must use the management shell to manually adjust the site permissions.

1
Open SharePoint Online Management Shell

Launch the SharePoint Online Management Shell on your computer as an administrator.

2
Connect to your SharePoint admin center

Run the command 'Connect-SPOService -Url https://[tenant]-admin.sharepoint.com' (replace [tenant] with your actual tenant name) and log in with your admin credentials.

3
Enable custom scripts for the site

Execute the command 'Set-SPOSite -Identity https://[tenant].sharepoint.com/sites/[site-name] -DenyAddAndCustomizePages 0' to allow custom scripts on the target site.

4
Verify the Web Parts

Refresh your SharePoint site page. The JSLink and Content Editor Web Part options should now be fully visible and ready to use.

Enable Custom Scripts via SharePoint Online Management Shell
Security and Policy Warning: Enabling custom scripts can introduce security vulnerabilities. Review Microsoft's security implications before making this change, and be aware that tenant-level policies might override or revert these settings in the future.
Free Microsoft Office alternative

Looking for a Lightweight Document Management Solution?

While SharePoint handles complex site web parts, if you need a fast, reliable, and free suite for managing, editing, and sharing everyday office documents, WPS Office is an excellent alternative to Microsoft Office. It seamlessly opens Microsoft formats without the heavy enterprise overhead.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
  2. 2. Install the Software: Run the installer and follow the quick on-screen instructions to complete the setup.
  3. 3. Open Your Documents: Launch WPS Office to instantly open, edit, and collaborate on your existing Microsoft Office files.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Lightweight installation that runs smoothly on standard and older hardware.Built-in robust PDF editing toolkit for daily document workflows.Free to download and use with a highly familiar user interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why did JSLink and Content Editor disappear from my SharePoint site?

Microsoft periodically updates SharePoint security controls. By default, custom scripting is disabled on modern sites and newly created sites to prevent malicious code execution. This hides any web parts that rely on custom scripts, including JSLink and the Content Editor.

What if the PowerShell script fails to enable custom scripts?

If the script fails, verify that you have the latest SharePoint Online Management Shell installed, ensure you are connected to the correct admin URL (-admin.sharepoint.com), check that your account has Global Administrator or SharePoint Administrator permissions, and confirm the exact site URL is typed correctly.

Can my organization override my custom script settings?

Yes. Tenant-level policies enforced by your IT department or global SharePoint administrators can override site-specific settings, potentially disabling custom scripts again after you have manually enabled them.