How to Restore JSLink and Content Editor Web Part Options in SharePoint
Question details
The user needs to restore the missing JSLink and Content Editor Web Part options within a SharePoint Online site.

- 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.
Ensure you have SharePoint Online Administrator privileges and that the SharePoint Online Management Shell is installed on your computer before executing PowerShell commands.
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.
Launch the SharePoint Online Management Shell on your computer as an administrator.
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.
Execute the command 'Set-SPOSite -Identity https://[tenant].sharepoint.com/sites/[site-name] -DenyAddAndCustomizePages 0' to allow custom scripts on the target site.
Refresh your SharePoint site page. The JSLink and Content Editor Web Part options should now be fully visible and ready to use.

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. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the quick on-screen instructions to complete the setup.
- 3. Open Your Documents: Launch WPS Office to instantly open, edit, and collaborate on your existing Microsoft Office files.

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.




