I have a SharePoint hosted app. I need to enable an edit section inside the app only when the page is in edit mode. This way I am making sure that only users with edit permission can view this option. The issue is that I am not able to determine, from within the app, whether or not the page is in the edit mode.
Currently, I am passing the following in the src of the ClientWebPart to check if the Web Part is in the edit mode,
editmode=_editMode_
Though, this implementation is working, it includes the following steps:
- Click the Edit Page option of the SharePoint page.
- In edit mode, for the target Web Part, click the Edit Web Part option.
- The private edit section is now visible.
My question is, can I reduce the above number of steps by completing bypassing the second option? Please advice.