create openContextMenu method for editor objects