In this article, we will see: What is difference between content editor webpart and script editor webpart in SharePoint?
- In Content Editor webpart, we can give a link to the file uploaded in a document library. In Script editor webpart we do not have such option.
Advantage of having “Content Link” property in CEWP is that, we do not need to always edit the page for code modification. We can just edit the file linked to the CEWP. This helps in preventing accidental loss of code as we can restore the version of that file.
- Content Editor webparts can be exported while Script Editor cannot by default. Script Editor webpart has default export mode of ‘Do Not Allow’.
To allow exporting of Script Editor webpart, in the properties pane, expand the Advanced section. You will see that there is a field to set the Export Mode of the web part, change this to Export All. This will enable the Export command on the web part menu, which will allow you to save the web part locally to your desktop.
Refer below article for detailed tutorial on how to export script editor webpart: https://www.id-live.com/blog/2015/11/how-to-create-an-exportable-script-editor-web-part-in-office-365/
You may also like: Custom Client Side People Picker in SharePoint using jQuery
I hope you liked this article on difference between Content editor and Script editor webpart in SharePoint. If you have any queries, please use below comments section for the same. Please like our Facebook page and subscribe to our newsletter for future updates. Have a nice day! tada…