If you’ve marked a region of your template file as editable and you want to lock it (make it noneditable in template-based documents) again, use the Remove Template Markup command.
Select Modify > Templates > Remove Template Markup.
Right-click (Windows) or Control‑click (Macintosh), then select Templates > Remove Template Markup.
The region is no longer editable.