Timeline for How do I know if the page is in Edit Mode from JavaScript?
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 13, 2016 at 12:32 | comment | added | Serhiy | For some reason, in IE the MSOLayout_InDesignMode is empty in eidt mode on Publishing page. So it's good to check g_disableCheckoutInEditMode variable as well. In my case it was the rescue. | |
Dec 18, 2013 at 18:19 | comment | added | Dennis G |
Microsoft.SharePoint.SPContext.Current.FormContext.FormMode in code behind - just for reference :)
|
|
Jan 30, 2012 at 16:34 | vote | accept | Renzo | ||
May 17, 2011 at 9:54 | vote | accept | Renzo | ||
Jan 30, 2012 at 16:34 | |||||
May 17, 2011 at 9:54 | comment | added | Renzo | This works! thanks @omlin also there is a javascript method available on wiki page called MSOLayout_IsWikiEditMode() which returns true or false. Anyway this is the right answer too! cheers | |
May 16, 2011 at 21:02 | history | edited | Andrey Markeev | CC BY-SA 3.0 |
added 1 characters in body
|
May 16, 2011 at 20:38 | comment | added | gion_13 |
i know little about sharepoint, but i think that if (inDesignMode = "1") is a typo :P
|
|
May 16, 2011 at 15:52 | comment | added | Andrey Markeev | I've updated my answer with solution for wiki pages. Note: this was NOT tested for publishing pages.. | |
May 16, 2011 at 15:50 | history | edited | Andrey Markeev | CC BY-SA 3.0 |
added 309 characters in body
|
May 16, 2011 at 15:41 | comment | added | Andrey Markeev | I've tested on empty site template. Now I see: this method doesn't work for wiki pages, but for simple pages and webpart pages it works. | |
May 16, 2011 at 14:48 | comment | added | Renzo | Hello @omlin thanks for your quick response. However for some reason this returns always empty regardless of the page mode, any ideas? am I doing anything wrong? I am testing in a standard team site homepage | |
May 16, 2011 at 14:21 | history | edited | Andrey Markeev | CC BY-SA 3.0 |
added 322 characters in body; deleted 46 characters in body
|
May 16, 2011 at 14:13 | history | answered | Andrey Markeev | CC BY-SA 3.0 |