I have some javascript in a CEWP that I want to execute only when the page is in display mode. I've used firebug to scour the page for some "msEditMode" type of variable or something I can rely on.
I've seen tons of questions and answers about how to tell if a page is in edit mode, from server side, but I cannot find a solution for how to tell if the page is in edit mode, client side.
Can anyone point me in the right direction? Do I need to create a web part that simply emits such a variable? (That seems like overkill to me.)
Thanks so much!