Enabling Custom Scripts
MediaRich OneViewer for Office 365 provides customizations to your SharePoint Online libraries so that they function as visual environments supporting over 400 file formats. Before you can install the OneViewer app and activate this functionality, you must make sure that custom scripts can run in your SharePoint environment.
To enable custom scripts:
| 1. | Navigate to the admin center for the site. |
This should be http://[tenantname]-admin.sharepoint.com
| 2. | On the left side of the admin center page, click the Settings menu item. |
Access the settings for the site
| 3. | Scroll down to the Custom Script section and select the Allow users to run custom script on self-service created sites checkbox. |
Enable custom scripts to run
| 4. | Click OK at the bottom of the page. |
Important: This procedure describes a straightforward process to enable custom scripts to run in your OneViewer libraries. However, after you complete the steps, it could take up to 24 hours to take effect. If you are proficient with scripting, you can enable scripting on a particular site collection immediately using the following PowerShell command:
Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0
Make sure the scripting setting in the admin portal matches what you set using PowerShell, or the site collection setting could be overridden again in the next 24 hours. For more information and to get started using PowerShell with SharePoint Online, see the TechNet article, Introduction to the SharePoint Online Management Shell.
On-Line Documentation