Difference between Content Editor & Script Editor Webpart in SharePoint

In this article, we will see: What is difference between content editor webpart and script editor webpart in SharePoint?

  1. In Script Editor Web Part we can paste html and JavaScript only. In Content Editor webpart we can add html, JavaScript, formatted text, tables, hyperlinks, and images also.
  2. 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.
    Difference between Content editor and Script editor webpart in SharePoint
    Difference between Content editor and Script editor webpart in SharePoint

    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.

  3. 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/ 

    Difference between Content editor and Script editor webpart in SharePoint
    Difference between Content editor and Script editor webpart in SharePoint

     

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…

Leave a Reply