You can lock heroes in the tavern. In the player tab. But it's a lengthy process. I don't know of any other ways.
Added 2 minutes later
Oh, and yes. Why create a new thread? You could just ask about this in the existing thread about the editor.
Auto-translated