See the section `Logic for editing boxes` in #1755
See the section
Logic for editing boxesin #1755