getMenuDef method on editor; closes #98