Returns the anchor position for undo or redo operations.
The text block anchor position, or null if position was unchanged.
If true, returns the old anchor (for undo); if false, returns the new anchor (for redo).