If I use Edit Game on a fresh board, the system has no problem castling.
If I first use Edit Position to set up the board to some midgame state, and then switch to Edit Game, the system will not allow a castle. It complains that it's an illegal move.