Tuesday 26 August 2014

Content Editor web part v/s Script Editor web part in 2013

Today when I’m trying to quickly place some scripts on the list page and found one new interesting web part named ‘Script Editor’. By the name it self understood that this is a place holder for embedding scripts. But question comes ‘how does it perform different with Content Editor web part’?
Well content editor web part is a place holder for creating rich text on on the page. Though I’m not a big fan of this in terms of usability (as developer), but didn’t have another option in SP 2010. This gives a cumbersome output with mixture of HTML and scripts inline. Now you don’t need to bother about mixing the content with scripts. This can be easily separated with Script Editor web part.
Coming to differences both renders in same way on page including div structure and internal elements. The only difference found between these web parts are Content Editor  web part  can be exported and script editor web part doesn’t allow you by default. Script Editor web part having default export mode of ‘Do Not Allow’.

1 comment: