Collapse on the highest available heading level

This allows editing of non-standard pages

Bug: 60478
Bug: 60479
Change-Id: I75ac7e75e9747d80295469b51882c447cf2f3df6
Merge "Collapse on the highest available heading level"