Refuse edits that change a locked section. A section may move, since the
blocks around it are editable, but it must come out of every transaction
exactly as it went in. Loading another document is not an edit of this
one, so a transaction kept out of the history passes, as it does for the
suggestion tracker. Register this before transforms that keep derived
content current (fields, formulas), so it judges the edit alone and their
updates inside a section still land. Returns a disposer.
Refuse edits that change a locked section. A section may move, since the blocks around it are editable, but it must come out of every transaction exactly as it went in. Loading another document is not an edit of this one, so a transaction kept out of the history passes, as it does for the suggestion tracker. Register this before transforms that keep derived content current (fields, formulas), so it judges the edit alone and their updates inside a section still land. Returns a disposer.