Skip to content

jcoleman-pcprofessional/True-Script-Editor

Repository files navigation

True Script Editor

Summary

This was built as a simple proof of concept and to restore the true power of the 'classic' SharePoint Script Editor Web Part

Working with

Built with SharePoint Framework GA, Office Fabric, and jQuery

Used SharePoint Framework Version

drop

Screenshots

Applies to

Solution

Solution Author(s)
true-script-editor Jeremy Coleman (PC Professional, Inc.)

Version history

Version Date Comments
1.0.2 March 10th, 2017 Updated External JS Loading function
1.0.1 March 7th, 2017 Added HTML Editor option
1.0.0 March 7th, 2017 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Prerequisites

  • SharePoint Online tenant with Office Graph content

Minimal Path to Awesome

  • clone this repo
  • $ npm i
  • $ gulp serve

Features

Sample Web Parts in this solution illustrate the following concepts on top of the SharePoint Framework:

  • Load (multiple, csv delimited) external CSS files onto the page
  • Load (multiple, csv delimited) external JS files onto the page
  • Execute script blocks on the page
  • Added CSS style directly to the page
  • Add HTML to render within the web part DOM element