How to tell if in edit Mode?

How do you know whether or not you are in edit mode?

I saw there is editCell and editStop, but no isInEditMode.

You can use

if (grid.editor) alert("grid is in edit mode");