We have added a content editor webpart to EditForm.aspx for document library. In the CEWP, there’s a JS filed. We need to execute different code when a folder is getting edited (like renaming the folder) and when file metadata is edited. How can we check if the currently opened item is a folder or aRead more