Forum Discussion
"Content Embed" vs "Script Editor" in the new modern pages
https://sharepoint.uservoice.com/forums/329214-sites-and-collaboration/suggestions/17290130-bring-back-script-editor-web-part-in-modern-shar
______________
The Script Editor Web Part has been replaced by the Content Editor (which does a very limited iframe) and the new SPFX stuff. I am not a developer, but knowledgeable in HTML, Javascript, CSS. The SEWP met some very complex use cases (targeted for replacement by SPFX), but also some very simple use cases.
Example: Insert a formatted single HTML button, something that is big, draws attention, and encourages the user to click it to start an action.
What might be just 2 lines of code, has now turned into (what looks like) hundreds of files of deployment, installing all kinds of tools that I have never heard of or know what they are actually doing in the background.
I am finding SPFX to be specifically geared toward professional developers and limiting "citizen" developers from adding just simple things to SharePoint pages. I am trying to learn it, but there are so many things above my head at this point, and my role is not to be a full-time developer.
This is to lobby to bring back the Script Editor Web Part to meet simple use cases
- Brent EllisMar 24, 2017Silver Contributor
Shout out to Mikael Svenson, after some muddling through some gulping and serving, and other things I dont know what I'm doing, I have a Script Editor Web Part in modern sharepoint!
This is going to save all kinds of time!
I say boo to all the legit developers that are saying this shouldnt be a thing. At least for my organization, this is a huge value-add and will help us start transitioning into modern sharepoint alot faster.
I've tested many of my more complicated SEWP and all working perfecting in Mikael's web part!
Couple links of note:
https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-script-editor
http://ericoverfield.com/script-editor-webpart-sewp-now-available-for-the-sharepoint-framework-spfx-sort-of/
- bhanu chinthaFeb 01, 2018Iron Contributor
Hello Everyone,
I would also recommend you to try the below one. This is very good and lot of options to include custom script/css/content
https://github.com/jcoleman-pcprofessional/True-Script-Editor
Thanks & Regards,
Bhanu
- Mikael SvensonMar 24, 2017Iron ContributorHappy you could use it :) Next add would be to point to a file, but I'll wait until sp-filepicker is available as a component.
We're using it at a customer to add a big red button, navigating to a policy page :)